|
Re: PID Loop Controller with a Servo
Quote:
Originally Posted by tomy
I know I can do that. I am talking about live tracking a target. If the camera is mounted on a turret and the servo can turn it fast enough there needs to be a ratio between the distance to the center of the target and angle to turn. My question is if this is a good method?
|
If I'm following your question, there is a really nice thread discussing it here.
In very simple terms, divide your camera's field of view in degrees by your horizontal resolution. That will give you degrees per pixel.
Now just multiply the numbers of pixels you are out of alignment by the degrees per pixel and you have your degrees to turn.
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
|