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