| billbo911 |
18-04-2016 00:31 |
Re: PID Loop Controller with a Servo
Quote:
Originally Posted by tomy
(Post 1574564)
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.
|