Gyroscope Sensor API.
More...
Gyroscope Sensor API.
Contains functions and types for configuring and reading data from the gyroscope.
◆ 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
-
| *gyro | Pointer to gyro struct. |
- Returns
NULL.
|
|
void(*)(struct Gyro *gyro, float *out) |
readGyro |
Pointer to readGyro method. Read 3-axis floating point rotations.
- Parameters
-
| *gyro | Pointer to accel struct. |
| *out | Floating point rotation array. |
- Returns
NULL.
|
|
void(*)(struct Gyro *, uint8_t *) |
readRawBytes |
Pointer to readRawBytes method. Read raw 3-axis data.
- Parameters
-
| *gyro | Pointer to gyro struct. |
| *out | Raw 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
-
| *gyro | Pointer to gyro struct. |
| *bytes | Raw 3-axis data array. |
| *out | Processed 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 |
|