pub struct Hysteresis {
pub high: f64,
pub low: f64,
}Expand description
A Schmitt-trigger comparator: stays HIGH until the input drops below low, stays LOW
until the input rises above high — the standard bang-bang/hysteresis-band block
(block-diagram simulation tools typically offer an equivalent “Relay”/hysteresis block)
used for current-mode control when there’s no fixed switching frequency to modulate a duty
command onto, unlike crate::Pid
feeding a PWM carrier. Deliberately not a crate::StateSpace: the on/off memory is a
genuine discrete latch, not a linear dynamic, the same reason crate::Vco’s wraparound
is evaluated directly rather than folded into one.
Fields§
§high: f64§low: f64Implementations§
Trait Implementations§
Source§impl Clone for Hysteresis
impl Clone for Hysteresis
impl Copy for Hysteresis
Source§impl Debug for Hysteresis
impl Debug for Hysteresis
Source§impl PartialEq for Hysteresis
impl PartialEq for Hysteresis
impl StructuralPartialEq for Hysteresis
Auto Trait Implementations§
impl Forget for Hysteresis
impl Freeze for Hysteresis
impl Move for Hysteresis
impl RefUnwindSafe for Hysteresis
impl Send for Hysteresis
impl Sync for Hysteresis
impl Unpin for Hysteresis
impl UnsafeUnpin for Hysteresis
impl UnwindSafe for Hysteresis
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