Core2 for AWS IoT EduKit BSP 1.5.1
MPU6886_GetAccelData
void MPU6886_GetAccelData(float *ax, float *ay, float *az);
void MPU6886_GetAccelData(float *ax, float *ay, float *az)
Retrieves the accelerometer measurements from the MPU6886.
Definition: mpu6886.c:162

Retrieves the accelerometer measurements from the MPU6886.

Example:

Get the accelerometer values for the X, Y, and Z direction.

float accel_x = 0.00;
float accel_y = 0.00;
float accel_z = 0.00;
MPU6886_GetAccelData(&accel_x, &accel_y, &accel_z);
Parameters
[out]axThe 16-bit accelerometer measurement in the X direction.
[out]ayThe 16-bit accelerometer measurement in the Y direction.
[out]azThe 16-bit accelerometer measurement in the Z direction.