HF-Core Platform 0.1.0-dev
Hardware-Agnostic Handler Layer & RTOS Utilities for HardFOC
Loading...
Searching...
No Matches
Bno08xHandler.cpp File Reference

Implementation of unified BNO08x IMU sensor handler. More...

#include "Bno08xHandler.h"
#include <cmath>
#include <cstdio>
#include <cstring>
#include "handlers/logger/Logger.h"
#include "OsUtility.h"
#include "core/hf-core-drivers/external/hf-bno08x-driver/src/sh2/sh2_err.h"
Include dependency graph for Bno08xHandler.cpp:

Detailed Description

Implementation of unified BNO08x IMU sensor handler.

This implementation provides:

  • CRTP communication adapters bridging BaseI2c/BaseSpi to bno08x::CommInterface
  • Complete handler lifecycle (Initialize/Deinitialize)
  • SH-2 sensor data reading for all IMU axes, quaternions, Euler angles
  • Activity/gesture detection (tap, step, shake, pickup, stability)
  • Calibration status monitoring
  • Sensor enable/disable with configurable intervals
  • Hardware control (reset, boot, wake pins)
  • Thread-safe operations with recursive mutex
  • Comprehensive diagnostics
Author
HardFOC Team
Date
2025