View Single Post
  #7   Spotlight this post!  
Unread 05-02-2009, 12:43
Bongle's Avatar
Bongle Bongle is offline
Registered User
FRC #2702 (REBotics)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2002
Location: Waterloo
Posts: 1,069
Bongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond repute
Send a message via MSN to Bongle
Re: [video] 2702's successful trailer-hunting autonomous test

Quote:
Originally Posted by Jim Wagner View Post
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.