Doly C++ SDK v1.00
Loading...
Searching...
No Matches
ImuControl.h
Go to the documentation of this file.
1#pragma once
2#include <stdint.h>
3#include "ImuEvent.h"
4
19
20namespace ImuControl
21{
42 int8_t 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);
43
52 int8_t dispose();
53
74 int8_t calculate_offsets(int16_t* gx, int16_t* gy, int16_t* gz, int16_t* ax, int16_t* ay, int16_t* az);
75
84
90
98 float getVersion();
99
100};
Event registration helpers for the IMU subsystem.
Definition ImuControl.h:21
float getTemperature()
Get the last temperature reading from the IMU.
int8_t dispose()
Dispose/stop the IMU subsystem and release resources.
ImuData getImuData()
Get the last IMU reading snapshot.
int8_t 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.
float getVersion()
Get current library version.
int8_t 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.
Latest IMU reading snapshot returned by the IMU subsystem.
Definition ImuEventListener.h:91