pub struct QuadEstimator<R: FlightFloat> { /* private fields */ }Implementations§
Source§impl<R: FlightFloat> QuadEstimator<R>
impl<R: FlightFloat> QuadEstimator<R>
pub fn new(k_p: R, k_i: R) -> Self
Sourcepub fn update_params(&mut self, params: &Params)
pub fn update_params(&mut self, params: &Params)
Update parameters from the parameter server. Call this every loop to read fresh parameter values.
Source§impl<R: FlightFloat> QuadEstimator<R>
impl<R: FlightFloat> QuadEstimator<R>
pub fn reset_state(&mut self)
pub fn reset_adaptive_bias(&mut self)
Trait Implementations§
Source§impl<R: FlightFloat> Default for QuadEstimator<R>
impl<R: FlightFloat> Default for QuadEstimator<R>
Source§impl<R: FlightFloat> Estimator<R> for QuadEstimator<R>
impl<R: FlightFloat> Estimator<R> for QuadEstimator<R>
type State = AttitudeState<R>
fn estimate(&mut self, ctx: EstimatorCtx<'_, R>) -> Self::State
fn update_params(&mut self, params: &Params)
fn reset(&mut self)
fn reset_adaptive_bias(&mut self)
Auto Trait Implementations§
impl<R> Freeze for QuadEstimator<R>where
R: Freeze,
impl<R> RefUnwindSafe for QuadEstimator<R>where
R: RefUnwindSafe,
impl<R> Send for QuadEstimator<R>
impl<R> Sync for QuadEstimator<R>
impl<R> Unpin for QuadEstimator<R>where
R: Unpin,
impl<R> UnsafeUnpin for QuadEstimator<R>where
R: UnsafeUnpin,
impl<R> UnwindSafe for QuadEstimator<R>where
R: UnwindSafe,
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
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§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 more§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).§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.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.