Quote:
Originally Posted by Jim Wagner
Was this coded in LabView, if so, did you use the camera tracking demo example? How di dyou incorporate the drive into that example?
|
We used the base SimpleTracker code (not the more-complex 2-color stuff they posted later) with our own custom "FindTrailerHeading" function that finds green on pink (or pink on green) and returns the distance and camera-relative heading to the target. Then we add that to the current servo heading to get a robot-relative heading, then we feed that to a PID loop which makes the robot point at the targeted heading.
The servo always gets pointed towards the target when we find it, and if it loses the target for 1 second, it goes into a search routine.