| | RCX 2.0 Arrays
|
|
I wanted to increment the value contained in an array. I did array[0]++; NQC complained: ERROR expression is not a legal target for assignment. The carrot under array[0]++ pointed to the index value, that is the 0. It seems NQC thought I was trying (...) (23 years ago, 25-Aug-01, to lugnet.robotics.rcx.nqc)
|
|
| | Need help with RcxCC: I get "The system cannon find the file specified" error.
|
|
Hi. I'm having problems with RcxCC. I hope you can help me. I've just installed RcxCC v. 3.2. I use Win2000 and RIS 1.5. When I compile a simple program, I get following error message: " Win32 Error. Code: 2. The system cannot find the file (...) (23 years ago, 24-Aug-01, to lugnet.robotics.rcx.nqc)
|
|
| | Re: Convert NQC to legOS
|
|
(...) If it could take an NQC program and convert it, ready to go, into LegOS. That would be very cool. Many of us just don't understand C very well and to be able to just tweak our progs for the better power and speed would be very welcome. But (...) (23 years ago, 21-Aug-01, to lugnet.robotics.rcx.legos, lugnet.robotics.rcx.nqc)
|
|
| | Convert NQC to legOS
|
|
I have been thinking about how to convert NQC program to legOS program when I found standard firmware only supports 8 levels output, but legOS can support 255 levels. I wanted to write the converting software by myself, but I don't have enough time (...) (23 years ago, 21-Aug-01, to lugnet.robotics.rcx.legos, lugnet.robotics.rcx.nqc)
|
|
| | Re: problems with nqc under linux
|
|
It looks like the serial port just isn't getting the right settings (baud, parity, etc). I'm not sure how to go about diagnosing/fixing it...NQC makes some rather straightforward POSIX calls to configure the serial port. If it is not working, then (...) (23 years ago, 18-Aug-01, to lugnet.robotics.rcx.nqc)
|
|
| | Re: problems with nqc under linux
|
|
Hallo Dave! Thanks for your respond. I've done your suggestion. I connected two linux computers with a nullmodem cable. On the other computer nqc is working correctly, but it has installed an older version of nqc 2.0.2 (on my notebook runs nqc 2.2., (...) (23 years ago, 17-Aug-01, to lugnet.robotics.rcx.nqc)
|
|
| | Re: problems with nqc under linux
|
|
Looks like the data is getting garbled. One guess would be that the port (under Linux) isn't handling odd parity with 8 data bits correctly. Is there any way you could connect this to another computer using a null modem? Preferably, use another (...) (23 years ago, 15-Aug-01, to lugnet.robotics.rcx.nqc)
|
|
| | problems with nqc under linux
|
|
Hallo! Has anybody experiences with nqc for linux on notebooks? I want to use nqc under linux on a notebook computer. I use a serial pcmcia card from socket communications. The serial port is configured as ttyS0 (irq 4 and io-adr. 0x03f8 are (...) (23 years ago, 15-Aug-01, to lugnet.robotics.rcx.nqc)
|
|
| | NQC 2.4 a2 in beta test
|
|
Some minor tweaks from 2.4 a1. (URL) reply to: dbaum at enteract dot com (23 years ago, 9-Aug-01, to lugnet.robotics.rcx.nqc)
|
|
| | Re: maximum current of outputs
|
|
(...) the batteries/ power supply's max is. Dean -- Dean Husby LUGNET Member #320 TFM's LEGO Workshop (www.akasa.bc.ca/tfm) The Vancouver LEGO Club (www.akasa.bc.ca/vlc/) (23 years ago, 8-Aug-01, to lugnet.robotics.rcx.nqc)
|
|
| | Re: Maximum current of motor outputs (2)
|
|
(...) No problem, they protect themselves against overcurrent. The best links I could find are (URL) Jürgen Stuber <stuber@loria.fr> (URL) (23 years ago, 8-Aug-01, to lugnet.robotics.rcx.nqc)
|
|
| | Maximum current of motor outputs (2)
|
|
Hi, this is my second attempt for getting information about the motor outputs. Some replies have been made for my first question but my question was not understood correctly. So, I will describe what I need and ask more precisely. Instead of a (...) (23 years ago, 8-Aug-01, to lugnet.robotics.rcx.nqc)
|
|
| | Re: maximum current of outputs
|
|
(...) That's all nice and well, but Bernd asked about current. I think it's on the order of several hundred mA, but I don't have exact figures. Unfortunately there is no (more?) data sheet for the 10402 motor controller used in the RCX at (URL) (...) (23 years ago, 8-Aug-01, to lugnet.robotics.rcx.nqc)
|
|
| | Re: Help needed for an NQC newbie
|
|
(...) Welcome! (...) ^^ 27 is way too low for a light sensor, so since this test fails your program just ends. Typical is 35 for very dark up to ca 50 for reflection on a bright surface, and higher if it looks into bright light. Use the View key to (...) (23 years ago, 7-Aug-01, to lugnet.robotics.rcx.nqc)
|
|
| | Re: maximum current of outputs
|
|
I am living in Tokyo, Japan now, here is 110v and same as NA. BTW, I will live in Boston from next month. Zhengrong (...) (23 years ago, 8-Aug-01, to lugnet.robotics.rcx.nqc)
|
|
| | Re: maximum current of outputs
|
|
(...) What part of the world do you live in? I'm in North America. I've checked the power levels very carefully to make sure my custom stuff would still work. If it's different with 220 volt stuff. Dean (...) -- Dean Husby LUGNET Member #320 TFM's (...) (23 years ago, 8-Aug-01, to lugnet.robotics.rcx.nqc)
|
|
| | Re: SetWatch() only accepts constants
|
|
(...) Sorry, the opcode requires constants - there's not much NQC can do (aside from generating an enormous switch statement). Dave (23 years ago, 8-Aug-01, to lugnet.robotics.rcx.nqc)
|
|
| | Re: maximum current of outputs
|
|
In my layout, I used Train power supply for RCX to drive train, the max voltage is 9.7v. Zhengrong (...) (23 years ago, 8-Aug-01, to lugnet.robotics.rcx.nqc)
|
|
| | Re: Help needed for an NQC newbie
|
|
Thanks a lot. I added the while statement and it worked. As far as the value of the light sensor, I kept the value I had and it worked correctly. I will post pictures of the setup after the weekend and you will understand. Jude Thanks again for the (...) (23 years ago, 8-Aug-01, to lugnet.robotics.rcx.nqc)
|
|
| | Re: Help needed for an NQC newbie
|
|
Try this. I had to change the value of the light sensor and add a While (true) statement. task main() { SetSensor(SENSOR_3,S...ROTATION); ClearSensor(SENSOR_3); SetSensor(SENSOR_2,S...OR_LIGHT); SetPower(OUT_A,2); while (true) if (SENSOR_2<40) { (...) (23 years ago, 8-Aug-01, to lugnet.robotics.rcx.nqc)
|