M5Unit-IMU 0.0.2 git rev:e5b00aa
Loading...
Searching...
No Matches
m5::unit::mpu6886::Data Struct Reference

One measurement (14 bytes burst from REG_ACCEL_XOUT_H, big-endian) More...

#include <unit_mpu6886_data.hpp>

Public Member Functions

float temperature () const
 Temperature in degC (T = adc/326.8 + 25.0)
 
Raw ADC values
int16_t accel_x () const
 Raw accelerometer X.
 
int16_t accel_y () const
 Raw accelerometer Y.
 
int16_t accel_z () const
 Raw accelerometer Z.
 
int16_t temp_adc () const
 Raw temperature ADC.
 
int16_t gyro_x () const
 Raw gyroscope X.
 
int16_t gyro_y () const
 Raw gyroscope Y.
 
int16_t gyro_z () const
 Raw gyroscope Z.
 

Public Attributes

std::array< uint8_t, 14 > raw {}
 [0..5] accel, [6..7] temp, [8..13] gyro
 

Detailed Description

One measurement (14 bytes burst from REG_ACCEL_XOUT_H, big-endian)