10#ifndef M5_UNIT_IMU_IMU_IMU_TYPES_HPP
11#define M5_UNIT_IMU_IMU_IMU_TYPES_HPP
34 return static_cast<Capability>(
static_cast<uint8_t
>(a) |
static_cast<uint8_t
>(b));
39 return static_cast<Capability>(
static_cast<uint8_t
>(a) &
static_cast<uint8_t
>(b));
50 return c != Capability::None;
Capability & operator|=(Capability &a, const Capability b)
Bitwise OR assignment.
Definition imu_types.hpp:42
constexpr Capability operator&(const Capability a, const Capability b)
Bitwise AND.
Definition imu_types.hpp:37
constexpr Capability operator|(const Capability a, const Capability b)
Bitwise OR.
Definition imu_types.hpp:32
constexpr bool any(const Capability c)
Any bit set?
Definition imu_types.hpp:48
Capability
Capability of the IMU data source (bitwise combinable)
Definition imu_types.hpp:22
@ Accel
3-axis accelerometer
@ Temp
Temperature output.
@ Baro
Barometric pressure (reserved for future)
Top level namespace of M5Stack.
Definition ahrs_controller.cpp:26
Raw to physical unit conversion coefficients.
Definition imu_types.hpp:69
float gyro_res
dps per LSB
Definition imu_types.hpp:71
float temp_res
degC per LSB
Definition imu_types.hpp:73
float mag_res
uT per LSB
Definition imu_types.hpp:72
float accel_res
G per LSB.
Definition imu_types.hpp:70
float temp_offset
degC offset
Definition imu_types.hpp:74
Merged, converted physical-unit IMU sample (AhrsController::latest())
Definition imu_types.hpp:81
float gyro[3]
Gyroscope X/Y/Z (dps)
Definition imu_types.hpp:83
float accel[3]
Accelerometer X/Y/Z (G)
Definition imu_types.hpp:82
float temp
Temperature (degC)
Definition imu_types.hpp:85
float mag[3]
Magnetometer X/Y/Z (uT)
Definition imu_types.hpp:84
Unified raw data (chip-native axes, no remap applied)
Definition imu_types.hpp:57
int16_t temp
Raw temperature.
Definition imu_types.hpp:62
int16_t accel[3]
Raw accelerometer X/Y/Z.
Definition imu_types.hpp:58
int32_t baro
Raw pressure (reserved)
Definition imu_types.hpp:61
int16_t gyro[3]
Raw gyroscope X/Y/Z.
Definition imu_types.hpp:59
int32_t mag[3]
Raw magnetometer X/Y/Z (32bit for BMM350)
Definition imu_types.hpp:60