pub struct TuningConstants {
pub c1: f32,
pub c2: f32,
pub c3: f32,
pub beta: f32,
}Expand description
The resolved set of tuning constants for one (process type, response level, controller type) combination.
Fields§
§c1: f32Proportional-gain multiplier. The only constant that varies by controller type for
a P-only controller — a P-only controller has no integral or derivative term, so
beta/c2/c3 are always zero for ControllerType::P, but c1 is not.
c2: f32Integral-time multiplier. Zero for ControllerType::P (no integral term).
c3: f32Derivative-time multiplier. Zero for every controller type except
ControllerType::Pid, and only ProcessType::allows_pid process types have a
nonzero value there.
beta: f32Hysteresis multiplier used during the relay test itself. Zero for
ControllerType::P (no integral term to protect from switching noise).
Trait Implementations§
Source§impl Clone for TuningConstants
impl Clone for TuningConstants
Source§fn clone(&self) -> TuningConstants
fn clone(&self) -> TuningConstants
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TuningConstants
Source§impl Debug for TuningConstants
impl Debug for TuningConstants
Source§impl<'de> Deserialize<'de> for TuningConstants
impl<'de> Deserialize<'de> for TuningConstants
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TuningConstants
impl PartialEq for TuningConstants
Source§fn eq(&self, other: &TuningConstants) -> bool
fn eq(&self, other: &TuningConstants) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TuningConstants
impl Serialize for TuningConstants
impl StructuralPartialEq for TuningConstants
Auto Trait Implementations§
impl Freeze for TuningConstants
impl RefUnwindSafe for TuningConstants
impl Send for TuningConstants
impl Sync for TuningConstants
impl Unpin for TuningConstants
impl UnsafeUnpin for TuningConstants
impl UnwindSafe for TuningConstants
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more