| | Re: Need help with my program
|
|
(...) Oops I forgot the code. Here it is. #define RUNTIME 100 #define REVERSTIME 30 #define TURNTIME 100 #define BUMPTURNTIME 100 #define STOPTIME 25 int lastlevel; // STARTUP TASK task main() { SetSensor(SENSOR_1,S...OR_TOUCH); (...) (24 years ago, 8-Aug-00, to lugnet.robotics.rcx.nqc)
|
|
| | Re: Need help with my program
|
|
(...) Why don't you post the code here? That'll help us help you! (24 years ago, 8-Aug-00, to lugnet.robotics.rcx.nqc)
|
|
| | Need help with my program
|
|
I just started with NQC and attempted to make a light-seeking program. It is supposed to go forward for a wile and them stop and then turn a little, check the light level, turn again, check again and keep doing it until it gets darker then the last (...) (24 years ago, 8-Aug-00, to lugnet.robotics.rcx.nqc)
|
|
| | Re: Arrays not working
|
|
(...) MacNQC 2.2a3 predates array support. MacNQC 2.2a3 uses NQC compiler 2.2a2, and arrays were added at NQC 2.2b1. You can find out what version of compiler is being used in the "About..." box. In theory the fix is simple...just release MacNQC (...) (24 years ago, 6-Aug-00, to lugnet.robotics.rcx.nqc)
|
|
| | Arrays not working
|
|
I'm trying to define an array with MacNQC 2.2a3, but this: int foo[10]; produces this error: Error: parse error untitled line 1 int foo[10]; ~ (24 years ago, 6-Aug-00, to lugnet.robotics.rcx.nqc)
|