Subject:
|
NQC Code
|
Newsgroups:
|
lugnet.robotics
|
Date:
|
Wed, 2 Dec 1998 20:36:09 GMT
|
Original-From:
|
John Donaldson <JDONALDSON@GHG.saynotospamNET>
|
Viewed:
|
3215 times
|
| |
| |
I got two questions.
1. How do you use the timer() function under NQC?
2. What is best way to determine if bot is stuck in corner make it turn
180 deg to get out?
John A. Donaldson
|
|
Message has 2 Replies: | | Re: NQC Code
|
| (...) I'm going from memory here - sorry if I goof something up.... There are three timers (0, 1, and 2). They are free running at 10Hz (100ms per tick). They do not run while the RCX is "off", but they do retain their count. You can clear a timer (...) (26 years ago, 3-Dec-98, to lugnet.robotics)
| | | Re: NQC Code
|
| (...) Based on the first question I would think you're on the right track. Counting the number of turns in a given time period is key. It impressed the hell out of the folks at the office when the rover would back out of a corner and turn around. (...) (26 years ago, 4-Dec-98, to lugnet.robotics)
|
5 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|