Struct mai400_api::raw_imu::RawIMU [−][src]
Raw accelerometer and gyroscope data
Fields
accel: [i16; 3]
Accelerometer (X, Y, Z) (3.9 mg/lsb)
gyro: [i16; 3]
Gyroscope (X, Y, Z) (8.75 mdps/lsb)
gyro_temp: u8
Gyroscope temperature (-1C/lsb)
Methods
impl RawIMU
[src]
impl RawIMU
pub fn new(msg: Vec<u8>) -> Option<Self>
[src]
pub fn new(msg: Vec<u8>) -> Option<Self>
Constructor. Converts a raw data array received from the MAI-400 into a usable structure
Trait Implementations
impl Clone for RawIMU
[src]
impl Clone for RawIMU
fn clone(&self) -> RawIMU
[src]
fn clone(&self) -> RawIMU
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for RawIMU
[src]
impl Debug for RawIMU
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for RawIMU
[src]
impl Default for RawIMU
impl PartialEq for RawIMU
[src]
impl PartialEq for RawIMU