Quote:
|
Originally Posted by Mike
My two cents about PID loops.
Today I tried implementing a PI loop. I've never done one before and was relying on non-proven code. I spent about three hours and called it quits. My new code that works great:
Code:
PAN_MOTOR = NEUTRAL + (pan_error / 5) + 11;
Adjust 5 and 11 to your needs.
Quote from my mentor: "Keep things as complex as necessary, and not a bit more."
|
For future refrence, for an application like a turret one would typically start with just P, and D to damp, and if it's too sluggish after damping (or you have steady state error) and I. In that order.