Originally Posted by Ryan O
I got the camera scanning and such, the only problem is that the refinment part of the code doesn't work! The camera just turns one way until it looses the atrget. I've looked at the code and can't find any obvious flaws and thought taht maybe T_Packet is different from .my. Maybe it doesn't go neg or something? Or is there just something in Kevins code I missed? I set the pan error high so it won't need the routine, but that kills the alignment code I'm working on. Any suggestion to fix the code would be great.
(This has been discussed in other threads, but...) You probably have your camera mounted upside down from the way Kevin's code assumes. You have (at least) two options:
- Invert your camera. (Turn it upside-down.)
- Change the PAN_ROTATION_SIGN_DEFAULT and TILT_ROTATION_SIGN_DEFAULT parameters in tracking.h.*
*Or, if you're using the "Bells and Whistles" version of the camera code, use the tracking menu to change them.