pub enum ControllerDirection {
Direct,
Reverse,
}Expand description
Direct-acting (increasing MV increases PV) or Reverse-acting (increasing MV decreases PV).
Variants§
Implementations§
Source§impl ControllerDirection
impl ControllerDirection
Sourcepub fn from_raw_tag_value(
raw_value: &str,
controller_action_direct_value: &str,
) -> ControllerDirection
pub fn from_raw_tag_value( raw_value: &str, controller_action_direct_value: &str, ) -> ControllerDirection
Resolves a direction read live from a DCS tag. The tag’s raw string value means
Direct exactly when it matches the active template’s
controller_action_direct_value; any other value means Reverse.
Sourcepub fn action_multiplier(self) -> i8
pub fn action_multiplier(self) -> i8
The sign flip applied throughout the relay-feedback math (SetActionMultiplier in
the legacy app): -1 for Direct-acting loops, 1 for Reverse-acting. Used both by
crate::mrft::MrftEngine (to decide which way the relay steps) and
core-tuning-math (to interpret mv_sign_init when deciding which of a completed
run’s peaks/troughs is the “extra” one) — kept as one method rather than duplicated
in both modules so the mapping can’t silently drift between them.
Trait Implementations§
Source§impl Clone for ControllerDirection
impl Clone for ControllerDirection
Source§fn clone(&self) -> ControllerDirection
fn clone(&self) -> ControllerDirection
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 moreSource§impl ComposeSchema for ControllerDirection
impl ComposeSchema for ControllerDirection
impl Copy for ControllerDirection
Source§impl Debug for ControllerDirection
impl Debug for ControllerDirection
Source§impl<'de> Deserialize<'de> for ControllerDirection
impl<'de> Deserialize<'de> for ControllerDirection
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
impl Eq for ControllerDirection
Source§impl Hash for ControllerDirection
impl Hash for ControllerDirection
Source§impl PartialEq for ControllerDirection
impl PartialEq for ControllerDirection
Source§fn eq(&self, other: &ControllerDirection) -> bool
fn eq(&self, other: &ControllerDirection) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ControllerDirection
impl Serialize for ControllerDirection
impl StructuralPartialEq for ControllerDirection
Auto Trait Implementations§
impl Freeze for ControllerDirection
impl RefUnwindSafe for ControllerDirection
impl Send for ControllerDirection
impl Sync for ControllerDirection
impl Unpin for ControllerDirection
impl UnsafeUnpin for ControllerDirection
impl UnwindSafe for ControllerDirection
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.