pub struct ComplementaryFilter<T> { /* private fields */ }Expand description
Implementations§
Source§impl<T> ComplementaryFilter<T>where
T: Copy + One + Zero + Neg<Output = T> + PartialEq + PartialOrd + Sub<Output = T> + Div<Output = T> + TrigonometricMethods + Vector3dMath + QuaternionMath + SqrtMethods + SensorFusionMath,
impl<T> ComplementaryFilter<T>where
T: Copy + One + Zero + Neg<Output = T> + PartialEq + PartialOrd + Sub<Output = T> + Div<Output = T> + TrigonometricMethods + Vector3dMath + QuaternionMath + SqrtMethods + SensorFusionMath,
Sourcepub fn roll_radians_from_acc_normalized(acc: Vector3d<T>) -> T
pub fn roll_radians_from_acc_normalized(acc: Vector3d<T>) -> T
Calculate roll (theta) from the normalized accelerometer readings.
Sourcepub fn pitch_radians_from_acc_normalized(acc: Vector3d<T>) -> T
pub fn pitch_radians_from_acc_normalized(acc: Vector3d<T>) -> T
Calculate pitch (phi) from the normalized accelerometer readings.
pub fn set_alpha(&mut self, alpha: T)
Trait Implementations§
Source§impl<T: Clone> Clone for ComplementaryFilter<T>
impl<T: Clone> Clone for ComplementaryFilter<T>
Source§fn clone(&self) -> ComplementaryFilter<T>
fn clone(&self) -> ComplementaryFilter<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for ComplementaryFilter<T>
impl<T: Debug> Debug for ComplementaryFilter<T>
Source§impl<T> Default for ComplementaryFilter<T>
impl<T> Default for ComplementaryFilter<T>
Source§impl<T: PartialEq> PartialEq for ComplementaryFilter<T>
impl<T: PartialEq> PartialEq for ComplementaryFilter<T>
Source§fn eq(&self, other: &ComplementaryFilter<T>) -> bool
fn eq(&self, other: &ComplementaryFilter<T>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<T> SensorFusion<T> for ComplementaryFilter<T>where
T: Copy + One + Zero + Neg<Output = T> + PartialOrd + Sub<Output = T> + Div<Output = T> + TrigonometricMethods + SqrtMethods + Vector3dMath + QuaternionMath + SensorFusionMath,
impl<T> SensorFusion<T> for ComplementaryFilter<T>where
T: Copy + One + Zero + Neg<Output = T> + PartialOrd + Sub<Output = T> + Div<Output = T> + TrigonometricMethods + SqrtMethods + Vector3dMath + QuaternionMath + SensorFusionMath,
Source§fn fuse_acc_gyro(
&mut self,
acc: Vector3d<T>,
gyro_rps: Vector3d<T>,
delta_t: T,
) -> Quaternion<T>
fn fuse_acc_gyro( &mut self, acc: Vector3d<T>, gyro_rps: Vector3d<T>, delta_t: T, ) -> Quaternion<T>
Fuses accelerometer and gyroscope readings to give the orientation quaternion.
fn set_gains(&mut self, gain0: T, _gain1: T)
fn requires_initialization() -> bool
fn fuse_acc_gyro_mag( &mut self, acc: Vector3d<T>, gyro_rps: Vector3d<T>, _mag: Vector3d<T>, delta_t: T, ) -> Quaternion<T>
impl<T: Copy> Copy for ComplementaryFilter<T>
impl<T> StructuralPartialEq for ComplementaryFilter<T>
Auto Trait Implementations§
impl<T> Freeze for ComplementaryFilter<T>where
T: Freeze,
impl<T> RefUnwindSafe for ComplementaryFilter<T>where
T: RefUnwindSafe,
impl<T> Send for ComplementaryFilter<T>where
T: Send,
impl<T> Sync for ComplementaryFilter<T>where
T: Sync,
impl<T> Unpin for ComplementaryFilter<T>where
T: Unpin,
impl<T> UnsafeUnpin for ComplementaryFilter<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for ComplementaryFilter<T>where
T: 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