Skip to content

Commit 51dbea9

Browse files
Update gyro calibration implementation
*dmp_enable_feature* (**DMP_FEATURE_GYRO_CAL**) needs to be called in conjunction with **DMP_FEATURE_SEND_CAL_GYRO** See: https://github.com/sparkfun/9DOF_Razor_IMU/blob/master/Libraries/Arduino/src/util/inv_mpu_dmp_motion_driver.c#L1090 Brought up by in this issue: #10 Tested to work.
1 parent 6df2dc2 commit 51dbea9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Firmware/_9DoF_Razor_M0_Firmware/_9DoF_Razor_M0_Firmware.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,7 @@ bool initIMU(void)
323323
{
324324
// Gyro calibration re-calibrates the gyro after a set amount
325325
// of no motion detected
326+
dmpFeatureMask |= DMP_FEATURE_GYRO_CAL;
326327
dmpFeatureMask |= DMP_FEATURE_SEND_CAL_GYRO;
327328
}
328329
else

0 commit comments

Comments
 (0)