View Single Post
  #6   Spotlight this post!  
Unread 25-01-2004, 20:47
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: trouble with beacon tracking code

Quote:
Originally Posted by [53] opticruzer
has any one got the tracking code to work? we are having trouble with the sensores picking up the beacon. to start the survos dont turn and when the robot should drive to target it still spins in circles. do you have any suggestions
It sounds like you're using the code in navigate.zip. Rich Petras' code in navigate.c centers the servos, blindly drives the 'bot away from the diamond plate several inches, and then starts a counter-clockwise turn-in-place until the beacon comes into view of one of the sensors. Only then do the servos start tracking and the 'bot drives toward the beacon. The turn-in-place is done to ensure that the beacon is well within the servos range of travel before they were allowed to track. This sounds like the behavor you're seeing. If all you want to do is try the trackers, upload tracker.hex (found in tracker.zip) instead of navigate.hex.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org