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.

Trait Implementations

impl Copy for DerivativeMode
[src]

impl Clone for DerivativeMode
[src]

fn clone(&self) -> DerivativeMode

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Debug for DerivativeMode
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.