pub enum MotionBasedViInitializationStatus {
Waiting {
keyframes_observed: usize,
cumulative_translation_meters: f64,
last_rejection: Option<MotionBasedViRejectionReason>,
velocity_stage_completed: bool,
last_gravity_alignment: Option<GravityVelocityAlignment>,
last_gyro_bias_alignment: Option<GyroBiasAlignment>,
},
Initialised {
result: MotionBasedViInitializationResult,
},
}Expand description
Read-only snapshot of MotionBasedViInitializer’s internal state.
Variants§
Waiting
Trigger has not yet fired. Reports the accumulated metrics plus
the last Err(...) returned by MotionBasedViInitializer::try_initialize
(if any) so callers can render diagnostic progress.
Fields
last_rejection: Option<MotionBasedViRejectionReason>velocity_stage_completed: booltrue once a BiasReleaseSchedule Stage A (“velocity stage”)
solve has fired and is cached on
MotionBasedViInitializer::velocity_stage_result. Always
false when bias_release is not configured (legacy path never
parks in a non-terminal Waiting success).
last_gravity_alignment: Option<GravityVelocityAlignment>Mirrors MotionBasedViInitializer::last_gravity_alignment: the
most recent gravity/velocity alignment attempt, kept even when
last_rejection reports a later gate rejected it. None when
estimate_gravity is off or no attempt has run yet.
last_gyro_bias_alignment: Option<GyroBiasAlignment>Mirrors MotionBasedViInitializer::last_gyro_bias_alignment:
the most recent gyro-bias rotation-only alignment attempt, kept
even when last_rejection reports a later gate rejected it.
None when estimate_gyro_bias is off or no attempt has run
yet.
Initialised
VIBA1 has fired and succeeded; the result is the recovered refinement.
Fields
Trait Implementations§
Source§impl Clone for MotionBasedViInitializationStatus
impl Clone for MotionBasedViInitializationStatus
Source§fn clone(&self) -> MotionBasedViInitializationStatus
fn clone(&self) -> MotionBasedViInitializationStatus
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl StructuralPartialEq for MotionBasedViInitializationStatus
Auto Trait Implementations§
impl Forget for MotionBasedViInitializationStatus
impl Freeze for MotionBasedViInitializationStatus
impl Move for MotionBasedViInitializationStatus
impl RefUnwindSafe for MotionBasedViInitializationStatus
impl Send for MotionBasedViInitializationStatus
impl Sync for MotionBasedViInitializationStatus
impl Unpin for MotionBasedViInitializationStatus
impl UnsafeUnpin for MotionBasedViInitializationStatus
impl UnwindSafe for MotionBasedViInitializationStatus
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,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
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.