pub struct Watch { /* private fields */ }Expand description
One drive’s monitoring as it runs: how long its setpoint has stood still and how long it has been held at its torque limit at low speed.
Implementations§
Source§impl Watch
impl Watch
Sourcepub fn check(
&mut self,
s: &Settings,
d: &Drive,
friction: f64,
peak: f64,
dt: f64,
) -> Option<Monitor>
pub fn check( &mut self, s: &Settings, d: &Drive, friction: f64, peak: f64, dt: f64, ) -> Option<Monitor>
One base step of dt of the drive’s monitoring, after its loops, its motor’s peak torque peak and the friction
torque the machine’s model takes of it now (friction, beside Drive::torque_hold): the monitor that trips it,
the first in the order of Monitor.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Watch
impl<'de> Deserialize<'de> for Watch
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 StructuralPartialEq for Watch
Auto Trait Implementations§
impl Freeze for Watch
impl RefUnwindSafe for Watch
impl Send for Watch
impl Sync for Watch
impl Unpin for Watch
impl UnsafeUnpin for Watch
impl UnwindSafe for Watch
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