mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
EKF2: RNG_USE_HGT param only used when ALT_SOURCE = rangefinder
This commit is contained in:
parent
00247e9d6a
commit
94a52b3525
@ -829,7 +829,7 @@ void NavEKF2_core::selectHeightForFusion()
|
||||
if (extNavUsedForPos) {
|
||||
// always use external vision as the height source if using for position.
|
||||
activeHgtSource = HGT_SOURCE_EV;
|
||||
} else if (((frontend->_useRngSwHgt > 0) || (frontend->_altSource == 1)) && (imuSampleTime_ms - rngValidMeaTime_ms < 500)) {
|
||||
} else if (((frontend->_useRngSwHgt > 0) && (frontend->_altSource == 1)) && (imuSampleTime_ms - rngValidMeaTime_ms < 500)) {
|
||||
if (frontend->_altSource == 1) {
|
||||
// always use range finder
|
||||
activeHgtSource = HGT_SOURCE_RNG;
|
||||
|
Loading…
Reference in New Issue
Block a user