M5Unit-IMU 0.0.2 git rev:e5b00aa
Loading...
Searching...
No Matches
ahrs_imu.hpp File Reference

M5Unified-compatible facade over AhrsController. More...

#include <cstdint>
#include "ahrs_controller.hpp"

Go to the source code of this file.

Classes

class  m5::imu::AhrsImu
 AhrsController plus an M5Unified IMU_Class-compatible API. More...
 
struct  m5::imu::AhrsImu::imu_3d_t
 3-axis float vector, layout-compatible with m5::IMU_Class::imu_3d_t More...
 
struct  m5::imu::AhrsImu::imu_data_t
 Merged accel/gyro/mag sample, layout-compatible with m5::IMU_Class::imu_data_t. More...
 

Namespaces

namespace  m5
 Top level namespace of M5Stack.
 

Detailed Description

M5Unified-compatible facade over AhrsController.

AhrsImu derives from AhrsController and adds thin forwarders that mirror m5::IMU_Class method names, signatures and data layout, so code written against M5Unified's M5.Imu ports here with minimal churn. All M5Unified vocabulary (the get/set spelling and the imu_data_t/imu_3d_t types) is confined to this file; AhrsController itself stays free of any M5Unified concept and keeps this library's write/read convention. This header pulls in no M5Unified source – the forwarders are built purely on AhrsController's public API (latest(), euler(), writeAutoCalibration(), and the hasAccel()/hasGyro()/hasTemp()/hasValidMag()/lastMicros() queries).