| | Need help with my program Michael Camilleri
|
| | 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: Need help with my program Matthew Miller
|
| | | | (...) 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)
|
| | | | |
| | | | Re: Need help with my program Michael Camilleri
|
| | | | (...) 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 Dave Baum
|
| | | | Your program is pretty difficult for me to follow...way too many tasks starting and stoping one another. For something as simple as the algorithm you described, you can probably take care of all the light seeking in a single task. If you still want (...) (24 years ago, 13-Aug-00, to lugnet.robotics.rcx.nqc)
|
| | | | |
| | | | | | Re: Need help with my program Michael Camilleri
|
| | | | (...) Yeah, I could really make my programs simpler. Like I said, this is one of my first. (...) (24 years ago, 14-Aug-00, to lugnet.robotics.rcx.nqc)
|
| | | | |