Doly C++ SDK v1.00
Loading...
Searching...
No Matches
ImuControl.h File Reference

Public API for Doly IMU (Inertial Measurement Unit) control. More...

#include <stdint.h>
#include "ImuEvent.h"

Go to the source code of this file.

Namespaces

namespace  ImuControl

Functions

int8_t ImuControl::init (uint8_t delay=0, int16_t gx=0, int16_t gy=0, int16_t gz=0, int16_t ax=0, int16_t ay=0, int16_t az=0)
 Initialize the IMU subsystem.
int8_t ImuControl::dispose ()
 Dispose/stop the IMU subsystem and release resources.
int8_t ImuControl::calculate_offsets (int16_t *gx, int16_t *gy, int16_t *gz, int16_t *ax, int16_t *ay, int16_t *az)
 Calculate and output sensor offsets.
ImuData ImuControl::getImuData ()
 Get the last IMU reading snapshot.
float ImuControl::getTemperature ()
 Get the last temperature reading from the IMU.
float ImuControl::getVersion ()
 Get current library version.

Detailed Description

Public API for Doly IMU (Inertial Measurement Unit) control.

Design notes:

  • Singleton-style control (namespace API; no instances)
  • Functions require init() before reading data
  • State changes / updates are reported asynchronously through ImuEvent/ImuEventListener

Threading notes:

  • IMU update/gesture callbacks are typically invoked from an internal worker/event thread