Loading...
Searching...
No Matches
Gyroscope

Gyroscope Sensor API. More...

Data Structures

struct  Gyro_t
 

Detailed Description

Gyroscope Sensor API.

Contains functions and types for configuring and reading data from the gyroscope.


Data Structure Documentation

◆ Gyro_t

struct Gyro_t

Definition at line 14 of file gyroscope.h.

Data Fields
void(*)(struct Gyro *gyro) update Pointer to update method.

Update internally stored rotation readings.

Parameters
*gyroPointer to gyro struct.
Returns
NULL.
void(*)(struct Gyro *gyro, float *out) readGyro Pointer to readGyro method.

Read 3-axis floating point rotations.

Parameters
*gyroPointer to accel struct.
*outFloating point rotation array.
Returns
NULL.
void(*)(struct Gyro *, uint8_t *) readRawBytes Pointer to readRawBytes method.

Read raw 3-axis data.

Parameters
*gyroPointer to gyro struct.
*outRaw 3-axis data array to write.
Returns
NULL.
void(*)(struct Gyro *, uint8_t *, float *) processRawBytes Pointer to processRawBytes method.

Process raw 3-axis data to floating point rotations.

Parameters
*gyroPointer to gyro struct.
*bytesRaw 3-axis data array.
*outProcessed 3-axis data array to write.
Returns
NULL.
uint8_t dataSize Total data size.
uint8_t * axes Array defining axes of mounting.
int8_t * sign Array defining sign of axes.
uint8_t * rawGyroData Raw angular rates array.
float * gyroData Processed angular rates array.
float * bias Bias offset array.
float sensitivity