View Single Post
  #5   Spotlight this post!  
Unread 08-02-2006, 19:47
Keith Watson Keith Watson is offline
Registered User
FRC #0957 (WATSON)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Wilsonville, OR
Posts: 112
Keith Watson is just really niceKeith Watson is just really niceKeith Watson is just really niceKeith Watson is just really nice
Re: Camera locked on

Quote:
Originally Posted by kaszeta
Look in terminal.c in Kevin's camera code. Basically, you can check the value of T_Packet_Data.my, T_Packet_Data.pixels, or T_Packet_Data.confidence.
The tracking code also uses PAN_ALLOWABLE_ERROR_DEFAULT and TILT_ALLOWABLE_ERROR_DEFAULT to determine whether the camera is locked or not. Search_Target() already has most (but not all) of the logic. It was simple to modify our code to report the tracking state (searching/tracking/locked) and the target centroid location.
__________________
Keith Watson - Professional Software Engineer
No relation to "Kevin" Watson, who created the camera tracking code.