Core2 for AWS IoT EduKit BSP 1.5.1
MPU6886_GetGyroData
void MPU6886_GetGyroData(float *roll, float *yaw, float *pitch);
void MPU6886_GetGyroData(float *gx, float *gy, float *gz)
Retrieves the gyroscope measurements from the MPU6886.
Definition: mpu6886.c:173

Retrieves the gyroscope measurements from the MPU6886.

Example:

Get the gyroscope values for the Roll, Yaw, and Pitch direction.

float g_roll = 0.00;
float g_yaw = 0.00;
float g_pitch = 0.00;
MPU6886_GetGyroData(&g_roll, &g_yaw, &g_pitch);
Parameters
[out]rollThe 16-bit gyroscope roll measurement.
[out]yawThe 16-bit gyroscope yaw measurement.
[out]pitchThe 16-bit gyroscope pitch measurement.