View Single Post
  #5   Spotlight this post!  
Unread 14-02-2007, 13:04
EricS-Team180's Avatar
EricS-Team180 EricS-Team180 is offline
SPAM, the lunchmeat of superheroes!
AKA: Eric Schreffler
FRC #0180 (SPAM)
Team Role: Engineer
 
Join Date: Apr 2002
Rookie Year: 2001
Location: Stuart, Florida
Posts: 561
EricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond repute
Re: Tracking_state confusion

Quote:
Originally Posted by Zero_Cool View Post
something similar to if (tracking_state == CAMERA_ON_TARGET){...}
Take a look at the Get_Tracking_State function in Kevin's tracking.c I believe it has what you are looking for.

btw, our experience has been that you don't want to use the camera data for chassis commands until you get a CAMERA_ON_TARGET, and once you have a lock, don't ignore your camera until the tracking state has transitioned all the way to SEARCHING. (a bit of hysteresis seems helpful)
__________________

Don't PANIC!
S. P. A. M.