mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-18 06:38:29 -04:00
AP_NavEKF2: only report terrain estimator innovations with valid rng value
This commit is contained in:
parent
2732226664
commit
171e80d8dc
@ -579,7 +579,7 @@ void NavEKF2_core::send_status_report(mavlink_channel_t chan)
|
|||||||
// height estimation or optical flow operation. This prevents false alarms at the GCS if a
|
// height estimation or optical flow operation. This prevents false alarms at the GCS if a
|
||||||
// range finder is fitted for other applications
|
// range finder is fitted for other applications
|
||||||
float temp;
|
float temp;
|
||||||
if ((frontend->_useRngSwHgt > 0) || PV_AidingMode == AID_RELATIVE || flowDataValid) {
|
if (((frontend->_useRngSwHgt > 0) && activeHgtSource == HGT_SOURCE_RNG) || (PV_AidingMode == AID_RELATIVE && flowDataValid)) {
|
||||||
temp = sqrtf(auxRngTestRatio);
|
temp = sqrtf(auxRngTestRatio);
|
||||||
} else {
|
} else {
|
||||||
temp = 0.0f;
|
temp = 0.0f;
|
||||||
|
Loading…
Reference in New Issue
Block a user