View Single Post
  #4   Spotlight this post!  
Unread 18-02-2011, 16:16
CrazyCarl461's Avatar
CrazyCarl461 CrazyCarl461 is offline
Power User
AKA: Carl Agnew
FRC #0461 (Westside Boiler Invasion)
Team Role: Coach
 
Join Date: May 2003
Rookie Year: 2001
Location: West Lafayette, IN
Posts: 189
CrazyCarl461 has a brilliant futureCrazyCarl461 has a brilliant futureCrazyCarl461 has a brilliant futureCrazyCarl461 has a brilliant futureCrazyCarl461 has a brilliant futureCrazyCarl461 has a brilliant futureCrazyCarl461 has a brilliant futureCrazyCarl461 has a brilliant futureCrazyCarl461 has a brilliant futureCrazyCarl461 has a brilliant futureCrazyCarl461 has a brilliant future
Send a message via AIM to CrazyCarl461
Re: Vision processing

You could use a PID to strafe and line yourself up horizontally with the pole.
  1. Mount your camera such that the center of the image is "straight ahead" for the robot.
  2. If you can see the end of the peg you want to hang on in your image, make the distance between that and the center of your image equal to the error.
  3. Strafe in the correct direction until the error is zero!
As far as stopping at the right forward position. You can use a triangulation method like Alan said. If you don't want to calculate anything, just see what vertical height of the target in your image corresponds to the forward position you are looking for. Set up a PID for that as well with the setpoint equal to that vertical position in your image.
__________________
My 2011 Build Season Blog
Resistance may be futile, but capacitance has potential!
© All content is protected by the honor system
Reply With Quote