| | Re: Help me convert this train program to use events (NQC)
|
|
(...) That was basically my plan if I couldn't get the light sensors to work reliably. Based on Brian's post I might go back to my original design, though. (19 years ago, 28-Nov-05, to lugnet.robotics.rcx.nqc, FTX)
|
|
| | Re: Help me convert this train program to use events (NQC)
|
|
(...) Speaker wire and small alligator clips will make a dandy solution for extending the basic wires - after all, you really only need one very long wire here (to the "remote station"), and yoiu have a working set-up. (...) Have you built and (...) (19 years ago, 28-Nov-05, to lugnet.robotics.rcx.nqc, FTX)
|
|
| | Re: Help me convert this train program to use events (NQC)
|
|
(...) If the rcx is on the train why not mount touch sensors on the underside looking down. You could then attach small ramps to the track which would trigger the sensor. If you put the sensors on a spring loaded mounting you shouldn't have problems (...) (19 years ago, 28-Nov-05, to lugnet.robotics.rcx.nqc, FTX)
|
|
| | Help me convert this train program to use events (NQC)
|
|
For Christmas I'm setting up a LEGO train on top of a narrow wall, so it has to operate like a shuttle -- stop at each end and reverse motor direction. My first attempt had a train regulator attached to a polarity switch, with the switch being (...) (19 years ago, 28-Nov-05, to lugnet.robotics, lugnet.robotics.rcx, lugnet.robotics.rcx.nqc, lugnet.trains, FTX)
|
|
| | Re: compiling problem
|
|
(...) I'm glad that your problem was so quickly resolved. Isn't LUGNET great? In the future, if you have problems compiling NQC code you might want to post the exact error text generated by the compiler. If you use BricxCC to run NQC the full error (...) (19 years ago, 21-Oct-05, to lugnet.robotics.rcx.nqc)
|
|
| | Re: compiling problem
|
|
thanks for the advice rob, it compiled successfully (19 years ago, 21-Oct-05, to lugnet.robotics.rcx.nqc)
|
|
| | Re: compiling problem
|
|
(...) thanks for replying Kevin, a) i did not know there were compile options, how do i change them? b) i am getting parse errors on the close brackets just before ELSE and the third-last bracket thanks (19 years ago, 21-Oct-05, to lugnet.robotics.rcx.nqc)
|
|
| | Re: compiling problem
|
|
You are missing semicolons after the: Wait(turn_time) lines (both) And a code suggestion, instead of: task drive() { while(true) { OnFwd(OUT_A); } } make it: task drive() { OnFwd(OUT_A); while(true) { } } as the motor stays OnFwd until turned off. (...) (19 years ago, 21-Oct-05, to lugnet.robotics.rcx.nqc)
|
|
| | Re: compiling problem
|
|
Hi Bennet, Before we can help, we need a bit more information: a) What NQC compile options are you using? b) What syntax errors are you getting? Kev (...) <snip> (19 years ago, 21-Oct-05, to lugnet.robotics.rcx.nqc)
|
|
| | compiling problem
|
|
could someone please tell me what is wrong with this program? i am new at nqc and can not seem to find a way to compile it. the program is for a front-wheel-drive tricycle similar to Michael Gasperi's version of a "grey walter turtle" #define (...) (19 years ago, 21-Oct-05, to lugnet.robotics.rcx.nqc)
|