pub struct StepMetrics {
pub amplitude: f32,
pub peak: f32,
pub peak_time_s: f32,
pub overshoot: f32,
pub rise_time_s: Option<f32>,
pub settling_time_s: Option<f32>,
pub bounce_back: f32,
pub final_value: f32,
pub saturated_s: f32,
}Expand description
What a step response looked like, normalized to the step: 1 is the step, whatever its size and direction.
Fields§
§amplitude: f32The step, in setpoint units (signed).
peak: f32The largest response.
peak_time_s: f32When it peaked, in seconds from the step.
overshoot: f32How far the peak went past the step: peak − 1, or 0.
rise_time_s: Option<f32>Time from 10% to 90% of the step, in seconds; None if it never reached 90%.
settling_time_s: Option<f32>When the response entered the settle band for good, in seconds from the step; None
if it was outside the band at the end of the window.
bounce_back: f32How far it fell back after the peak: peak − lowest after it.
final_value: f32The response at the end of the window.
saturated_s: f32How long the loop’s output (or the loop under it) was clipped during the step, in seconds: a clipped step measures the limit, not the loop.
Trait Implementations§
Source§impl Clone for StepMetrics
impl Clone for StepMetrics
impl Copy for StepMetrics
Source§impl Debug for StepMetrics
impl Debug for StepMetrics
Source§impl Default for StepMetrics
impl Default for StepMetrics
Source§impl PartialEq for StepMetrics
impl PartialEq for StepMetrics
impl StructuralPartialEq for StepMetrics
Auto Trait Implementations§
impl Forget for StepMetrics
impl Freeze for StepMetrics
impl Move for StepMetrics
impl RefUnwindSafe for StepMetrics
impl Send for StepMetrics
impl Sync for StepMetrics
impl Unpin for StepMetrics
impl UnsafeUnpin for StepMetrics
impl UnwindSafe for StepMetrics
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> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.