AP_NavEKF3: Remove unnecessary baro limiting

This commit is contained in:
Paul Riseborough
2021-06-02 11:13:16 +09:00
committed by Randy Mackay
parent 124f016e5b
commit a5a25411da
@@ -1181,11 +1181,6 @@ void NavEKF3_core::selectHeightForFusion()
if (dal.get_takeoff_expected() || dal.get_touchdown_expected()) {
posDownObsNoise *= frontend->gndEffectBaroScaler;
}
// If we are in takeoff mode, the height measurement is limited to be no less than the measurement at start of takeoff
// This prevents negative baro disturbances due to rotor wash ground interaction corrupting the EKF altitude during initial ascent
if (motorsArmed && dal.get_takeoff_expected() && !assume_zero_sideslip()) {
hgtMea = MAX(hgtMea, meaHgtAtTakeOff);
}
velPosObs[5] = -hgtMea;
} else {
fuseHgtData = false;