[][src]Struct accelerometer::orientation::Tracker

pub struct Tracker<A, V> where
    A: Accelerometer<V>,
    V: Vector<Axes = U3>, 
{ /* fields omitted */ }

Device position tracker which which filters noisy accelerometer data using statistical methods

Methods

impl<A, V> Tracker<A, V> where
    A: Accelerometer<V>,
    V: Vector<Axes = U3>, 
[src]

pub fn new(accelerometer: A, threshold: V::Component) -> Self[src]

Create a new orientation tracker

pub fn orientation(&mut self) -> Result<Orientation, A::Error>[src]

Get an orientation reading

pub fn last_orientation(&self) -> Orientation[src]

Get the last known orientation reading for the device

Auto Trait Implementations

impl<A, V> Send for Tracker<A, V> where
    A: Send

impl<A, V> Sync for Tracker<A, V> where
    A: Sync

Blanket Implementations

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> From for T[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same for T

type Output = T

Should always be Self