#include <otInertial.h>
Public Types | |
enum | ImuReadouts { IR_ACCELEROMETER, IR_GYROSCOPE, IR_MAGNETOMETER } |
Public Member Functions | |
otInertial () | |
void | init (otMPU9250 *imu, U8 timer, U32 sampling=100) |
bool | process (F32 &yaw, F32 &pitch, F32 &roll) |
U32 | elapsed () |
void | readout (U8 who, F32 &x, F32 &y, F32 &z) |
void | close () |
|
|
|
Create the class |
|
Free all allocated memory |
|
Return process elapsed time as us |
|
Init the class
|
|
Procedures that must be called continuously but which really take up the processor every 'sampling' milli seconds. Returns the three rotations.
|
|
Read basic IMU raw data
|