[][src]Struct msr::pid::PidConfig

pub struct PidConfig {
    pub k_p: f64,
    pub k_i: f64,
    pub k_d: f64,
    pub default_target: f64,
    pub min: Option<f64>,
    pub max: Option<f64>,
    pub p_min: Option<f64>,
    pub p_max: Option<f64>,
    pub i_min: Option<f64>,
    pub i_max: Option<f64>,
}

PID Configuration

Fields

k_p: f64

Proportional coefficient

k_i: f64

Integral coefficient

k_d: f64

Derivative coefficient

default_target: f64

The default setpoint

min: Option<f64>

Minimum output value

max: Option<f64>

Maximum output value

p_min: Option<f64>

Minimum proportional portion

p_max: Option<f64>

Maximum proportional portion

i_min: Option<f64>

Minimum integral portion

i_max: Option<f64>

Maximum integral portion

Trait Implementations

impl<'a> PureController<(PidState, f64, &'a Duration), (PidState, f64)> for PidConfig[src]

impl Default for PidConfig[src]

impl Clone for PidConfig[src]

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

Performs copy-assignment from source. Read more

impl PartialEq<PidConfig> for PidConfig[src]

impl Debug for PidConfig[src]

impl Serialize for PidConfig[src]

impl<'de> Deserialize<'de> for PidConfig[src]

Auto Trait Implementations

impl Send for PidConfig

impl Sync for PidConfig

Blanket Implementations

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]