Enum pid_control::DerivativeMode
[−]
[src]
pub enum DerivativeMode { OnError, OnMeasurement, }
PID controller derivative modes.
Two different ways of calculating the derivative can be used with the PID controller, allowing to avoid "derivative kick" if needed (see http://brettbeauregard.com/blog/2011/04/improving-the-beginner%E2%80%99s-pid-derivative-kick/ for details information on the implementation that inspired this one).
Choosing OnMeasurement
will avoid large bumps in the controller output
when changing the setpoint using set_target()
.
Variants
OnError | Calculate derivative of error (classic PID-Controller) | |
OnMeasurement | Calculate derivative of actual changes in value. |