AP_NavEKF3: Force velocity state to follow GPS when IMU data is bad
This commit is contained in:
parent
c0d88e2673
commit
458c67639d
@ -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;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user