|
Re: PID Loop Controller with a Servo
Building off billbo911 post:
I was thinking about it and I have a theory. Grip reports back the distance to the center of the target; x and y. Let's say the distance x was 50. If you did some testing to figure out how much the x error changes for each degree of rotation the servo makes then you could make a ratio. So basically you convert the error into degrees of change and then add it or subtract it to the current angle.
The only problem would be the ratio would change based on the distance from the target. That throws some difficulty in the theory.
Last edited by tomy : 17-04-2016 at 12:05.
|