To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 1017
1016  |  1018
Subject: 
NQC Code
Newsgroups: 
lugnet.robotics
Date: 
Wed, 2 Dec 1998 20:36:09 GMT
Original-From: 
John Donaldson <jdonaldson@ghg.net^AvoidSpam^>
Viewed: 
2611 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 (...) (25 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. (...) (25 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
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR