pub enum Criterion {
Overshoot {
max_overshoot: f32,
max_bounce_back: f32,
settled_past: Option<f32>,
},
}Expand description
What a search’s pair of steps must meet, on the means of StepSummary; limits are
fractions of the step (ArduPilot’s aggressiveness).
Variants§
Overshoot
The response overshoots at most max_overshoot and falls back at most
max_bounce_back after its peak: for a P search, a rate loop’s judging overshoot from
the step and an angle loop’s from where its steps end (settled_past).
Fields
settled_past: Option<f32>When set, overshoot counts from where each step ended
(StepSummary::overshoot_past_end) rather than from the step, and no step may
end more than this past the step. For a window that outlasts the rise, as an angle
step’s 1.5 s does (the slowest pass on the Titan Cobra, P 1.43, rose in 812 ms,
#564): a disturbance holding the response past the step, without ringing,
isn’t overshoot that a lower P removes (#564). None judges from the step, for a
window that may end mid-rise (a 0.25 s yaw rate step). Non-negative.
Implementations§
Source§impl Criterion
impl Criterion
Sourcepub fn passes(&self, steps: &StepSummary) -> bool
pub fn passes(&self, steps: &StepSummary) -> bool
Whether steps meet it: their means within the limits. No steps don’t.
Sourcepub fn max_bounce_back(&self) -> f32
pub fn max_bounce_back(&self) -> f32
The most bounce-back it allows.
Trait Implementations§
impl Copy for Criterion
impl StructuralPartialEq for Criterion
Auto Trait Implementations§
impl Forget for Criterion
impl Freeze for Criterion
impl Move for Criterion
impl RefUnwindSafe for Criterion
impl Send for Criterion
impl Sync for Criterion
impl Unpin for Criterion
impl UnsafeUnpin for Criterion
impl UnwindSafe for Criterion
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
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>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
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
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.