| | Help needed for an NQC newbie Jude Beaudin
|
| | Hi, Normally you can see me in .space, .loc.ca, or org.ca and the like. But now that I have an RCX I want to program a bit. I have written my first NQC program and compiled it using RCXCC. I then downloaded it to my RCX but when I press run the legs (...) (23 years ago, 7-Aug-01, to lugnet.robotics.rcx.nqc)
|
| | |
| | | | Re: Help needed for an NQC newbie Juergen Stuber
|
| | | | (...) 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: Help needed for an NQC newbie Robert Fay
|
| | | | 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)
|
| | | | |
| | | | | | Re: Help needed for an NQC newbie Jude Beaudin
|
| | | | 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)
|
| | | | |