[][src]Trait accelerometer::Accelerometer

pub trait Accelerometer<V: Vector> {
    type Error: Debug;
    fn acceleration(&mut self) -> Result<V, Self::Error>;
}

Accelerometers which measure acceleration vectors of type V

Associated Types

type Error: Debug

Error type

Loading content...

Required methods

fn acceleration(&mut self) -> Result<V, Self::Error>

Get acceleration vector reading from the accelerometer

Loading content...

Implementors

Loading content...