AP_NavEKF3: Force velocity state to follow GPS when IMU data is bad

This commit is contained in:
Paul Riseborough 2021-09-22 07:29:08 +10:00 committed by Andrew Tridgell
parent c0d88e2673
commit 458c67639d

View File

@ -698,9 +698,9 @@ void NavEKF3_core::FuseVelPosNED()
}
if (imuSampleTime_ms - badIMUdata_ms < BAD_IMU_DATA_HOLD_MS) {
badIMUdata = true;
stateStruct.velocity.z = gpsDataDelayed.vel.z;
} else {
badIMUdata = false;
}
}