View Single Post
  #7   Spotlight this post!  
Unread 08-02-2005, 23:47
logicalhippo logicalhippo is offline
Registered User
AKA: Russell McClellan
#0213 (Dirty Birds)
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Keene, NH
Posts: 11
logicalhippo is an unknown quantity at this point
Send a message via AIM to logicalhippo
Re: AUTO TRACKING!!!!!!:(

I'm not really familiar with the code that FIRST gave you, but basically what you want to do is:

send your TC command
wait for 1 T packet
if pixels = 0
{
-send a \r
-send the set servo command to the next counter
-repeat from beginning
}
else
{ //(it found a color)
-send a \r
-enable auto-servo mode
-send the TC command again
}

We're not using servos and just rotating the whole robot. The only advantages I can see to the servos are using the tilt angle to calculate distance and pan and scanning before the match begins.

wow.. commented pseudocode...