View Single Post
  #4   Spotlight this post!  
Unread 09-02-2006, 02:09
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: Grabbing Tilt Angle?

Are those tilt angles, by themselves, accurate enough to use for aiming on your particular bot? This is an interesting question to consider. To answer it you need to read the tracking code to see what it is really doing. Look for what "locked" really means. Then some math is needed to calculate accuracies.

To answer the question you will need the following info which is not documented in the source code. I found it after searching the forums.
  • T_Packet_Data.mx = X pixel of the target centroid
  • T_Packet_Data.my = Y pixel of the target centroid
  • Horizontal camera field of view = 44 degreees (someone calculated this but I would verify it experimentally)
  • Vertical camera field of view = 34 degreees (someone calculated this but I would verify it experimentally)
__________________
Keith Watson - Professional Software Engineer
No relation to "Kevin" Watson, who created the camera tracking code.

Last edited by Keith Watson : 09-02-2006 at 02:29.