View Single Post
  #5   Spotlight this post!  
Unread 19-03-2006, 00:52
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: T_Packet_Data.mx vs PAN_SERVO

Quote:
Originally Posted by Roger
Once we used PAN_SERVO, the skies brightened, the clouds parted, angels sang, and most importantly the camera and the turret both agree where the green light should be. Say it's ain't so, Kevin, that all this time I should use PAN_SERVO instead of T_Packet_Data.mx to find the pan angle!
Well, I'm glad the software Gods are happy, but I don't think anyone here told you to use the .mx value to calculate the pan angle. Using the commanded pan and tilt servo PWM values to derive the heading and range have been discussed here many, many times. BTW, this is the very first parapraph of the tracking_readme.txt file:


Quote:
The source code in tracking.c/.h contains software to track a colored game object, keeping the center of the tracked object in the center of the camera's image using two servos that drive a pan/tilt platform. When the center of the colored object is centered on the camera's imager, you can use the current commanded pan and tilt PWM values to calculate a heading and range to the colored object.
You did read the documentation, didn't you <grin>.

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