| | NQC Code
|
| 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 (26 years ago, 2-Dec-98, to lugnet.robotics)
| | | | 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)
| | | | Re: NQC Code
|
| Nancy, Sorry for not getting back sooner. Been outof town. Anyway, thanks for the reply. This is what I am looking for. I am going to combine this wirh another routine. Basicly 1. Right Touch Sensor hits object. RCount += 1; IF RCount >= 2 { RCount (...) (26 years ago, 9-Dec-98, to lugnet.robotics)
| | | | Re: NQC Code
|
| Dave, Sorry for not getting back sooner. Been out of town. Anyway, thanks for the reply. This is what I am looking for. I am going to combine this wirh another routine. Basicly 1. Right Touch Sensor hits object. RCount += 1; IF RCount >= 2 { RCount (...) (26 years ago, 9-Dec-98, to lugnet.robotics)
| |