Data Fields
sMI_Accelerometer Struct Reference

internal struct used to save data related to linear acceleration (imu) More...

#include <twi.h>

Data Fields

uint8_t accel_xout_h
 
uint8_t accel_xout_l
 
uint8_t accel_yout_h
 
uint8_t accel_yout_l
 
uint8_t accel_zout_h
 
uint8_t accel_zout_l
 

Detailed Description

internal struct used to save data related to linear acceleration (imu)

The linear accelerations and their offsets are full scaled to +/-2 g. Hence, those values are measured in 2^14 (16384) steps per acceleration due to gravity (g = 9.81 m/s^2).
1 LSB = 2g / 2^15 ~ 5.988 * 10^-4 m/s^2

Note
All values are 16-bit wide and stored in order:
High byte first, low byte second.
See also
imu_get(), imu_request() and MI_Accelerometer

Field Documentation

◆ accel_xout_h

uint8_t sMI_Accelerometer::accel_xout_h

linear accel. along x-axis (high byte)

See also
imu_get() and kImuGetAccelX

◆ accel_xout_l

uint8_t sMI_Accelerometer::accel_xout_l

linear accel. along x-axis (low byte)

See also
imu_get() and kImuGetAccelX

◆ accel_yout_h

uint8_t sMI_Accelerometer::accel_yout_h

linear accel. along y-axis (high byte)

See also
imu_get() and kImuGetAccelY

◆ accel_yout_l

uint8_t sMI_Accelerometer::accel_yout_l

linear accel. along y-axis (low byte)

See also
imu_get() and kImuGetAccelY

◆ accel_zout_h

uint8_t sMI_Accelerometer::accel_zout_h

linear accel. along z-axis (high byte)

See also
imu_get() and kImuGetAccelZ

◆ accel_zout_l

uint8_t sMI_Accelerometer::accel_zout_l

linear accel. along z-axis (low byte)

See also
imu_get() and kImuGetAccelZ

The documentation for this struct was generated from the following file: