AP_NavEKF3: allow high values of EK3_ALT_M_NSE for boards without baros

This commit is contained in:
Andy Piper 2023-08-15 15:16:08 +01:00 committed by Randy Mackay
parent c1df42300e
commit 23c8142a6c
1 changed files with 1 additions and 1 deletions

View File

@ -1263,7 +1263,7 @@ void NavEKF3_core::selectHeightForFusion()
// enable fusion
fuseHgtData = true;
// set the observation noise
posDownObsNoise = sq(constrain_ftype(frontend->_baroAltNoise, 0.1f, 10.0f));
posDownObsNoise = sq(constrain_ftype(frontend->_baroAltNoise, 0.1f, 100.0f));
// reduce weighting (increase observation noise) on baro if we are likely to be experiencing rotor wash ground interaction
if (dal.get_takeoff_expected() || dal.get_touchdown_expected()) {
posDownObsNoise *= frontend->gndEffectBaroScaler;