mirror of https://github.com/ArduPilot/ardupilot
AP_NavEKF3: allow high values of EK3_ALT_M_NSE for boards without baros
This commit is contained in:
parent
c1df42300e
commit
23c8142a6c
|
@ -1263,7 +1263,7 @@ void NavEKF3_core::selectHeightForFusion()
|
||||||
// enable fusion
|
// enable fusion
|
||||||
fuseHgtData = true;
|
fuseHgtData = true;
|
||||||
// set the observation noise
|
// 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
|
// 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()) {
|
if (dal.get_takeoff_expected() || dal.get_touchdown_expected()) {
|
||||||
posDownObsNoise *= frontend->gndEffectBaroScaler;
|
posDownObsNoise *= frontend->gndEffectBaroScaler;
|
||||||
|
|
Loading…
Reference in New Issue