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

Calculate derivative of error (classic PID-Controller)

Calculate derivative of actual changes in value.

Trait Implementations

impl Debug for DerivativeMode
[src]

Formats the value using the given formatter.

impl Clone for DerivativeMode
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for DerivativeMode
[src]