Subject:
|
Need help with my program
|
Newsgroups:
|
lugnet.robotics.rcx.nqc
|
Date:
|
Tue, 8 Aug 2000 16:29:09 GMT
|
Viewed:
|
1857 times
|
| |
| |
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 level, and then go forward. The problem is that
once it starts turning it won't stop. Could you please help me? This is
one of my first programs and I really would like some help.
Yank You!
--Mike
|
|
Message has 2 Replies: | | 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)
|
5 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|