You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using this firmware, it seems the gyro introduces a significant drift into the roll, pitch, and yaw measurements (about 1 degree/second). I found that this can be fixed by changing this section of the code:
if (ENABLE_GYRO_CALIBRATION)
{
// Gyro calibration re-calibrates the gyro after a set amount
// of no motion detected
dmpFeatureMask |= DMP_FEATURE_SEND_CAL_GYRO;
}
and replacing it with the following:
if (ENABLE_GYRO_CALIBRATION)
{
// Gyro calibration re-calibrates the gyro after a set amount
// of no motion detected
dmpFeatureMask |= DMP_FEATURE_GYRO_CAL; //added this line
dmpFeatureMask |= DMP_FEATURE_SEND_CAL_GYRO;
}
This way the gyro calibrates after 8 seconds of no movement from the accelerometer. I can't think of a situation in which you wouldn't want this feature turned on.
The text was updated successfully, but these errors were encountered:
Using this firmware, it seems the gyro introduces a significant drift into the roll, pitch, and yaw measurements (about 1 degree/second). I found that this can be fixed by changing this section of the code:
if (ENABLE_GYRO_CALIBRATION)
{
// Gyro calibration re-calibrates the gyro after a set amount
// of no motion detected
dmpFeatureMask |= DMP_FEATURE_SEND_CAL_GYRO;
}
and replacing it with the following:
if (ENABLE_GYRO_CALIBRATION)
{
// Gyro calibration re-calibrates the gyro after a set amount
// of no motion detected
dmpFeatureMask |= DMP_FEATURE_GYRO_CAL; //added this line
dmpFeatureMask |= DMP_FEATURE_SEND_CAL_GYRO;
}
This way the gyro calibrates after 8 seconds of no movement from the accelerometer. I can't think of a situation in which you wouldn't want this feature turned on.
The text was updated successfully, but these errors were encountered: