Skip to content

Commit

Permalink
Update gyro calibration implementation
Browse files Browse the repository at this point in the history
*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.
  • Loading branch information
santaimpersonator authored Mar 14, 2019
1 parent 6df2dc2 commit 51dbea9
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ bool initIMU(void)
{
// Gyro calibration re-calibrates the gyro after a set amount
// of no motion detected
dmpFeatureMask |= DMP_FEATURE_GYRO_CAL;
dmpFeatureMask |= DMP_FEATURE_SEND_CAL_GYRO;
}
else
Expand Down

0 comments on commit 51dbea9

Please sign in to comment.