|
Re: PID Control
The way we've handled it is that we reset the I term once the robot has settled in place. That way, it is used when necesary, and turns itself off when it hits the target.
Edit: something to the extent of
if(error > -n && error < -n){
I = 0;
output = 0;
}
|