Quote:
Originally Posted by Jefferson
True, but if the setpoint is ever anything but zero, it may not take the shortest route.
|
That wasn't the question the OP was asking.
But if it were, just correct the angle_error instead and use
setpoint = angle_error; process_variable = 0;
or
setpoint = 0; process_variable = - angle_error;