 | | 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 (...) (25 years ago, 7-Aug-01, to lugnet.robotics.rcx.nqc)
|
| |
 | | Re: transfer data failed
|
|
I use 0.2.5 in windows (djgpp), and can't get by without using the slow download option (-s). If you have lighting problems, perhaps flipping the little switch on the IR tower will help. When I download stuff at school, it helps to have it set to (...) (25 years ago, 8-Aug-01, to lugnet.robotics.rcx.legos)
|
| |
 | | 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 (...) (25 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 (...) (25 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 (25 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 (...) (25 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 (...) (25 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) { (...) (25 years ago, 8-Aug-01, to lugnet.robotics.rcx.nqc)
|
| |
 | | Re: SetWatch() is remembered?
|
|
(...) The Watch will reset to 0000 when you turn off device. It gets cleared on power up every time. You can, however, start and stop programs and keep the time. Dean -- -Dean Husby LUGNET Member #320 (25 years ago, 7-Aug-01, to lugnet.robotics.rcx.nqc)
|
| |
 | | Re: maximum current of outputs
|
|
(...) 9.3x volts when a Train Power supply is used. Down to as little as 6.5 volts when batteries are getting pretty low. Dean -- -Dean Husby LUGNET Member #320 Co-Founding Member: VLC (25 years ago, 7-Aug-01, to lugnet.robotics.rcx.nqc)
|