update terrain validity all the time

This commit is contained in:
bresch
2022-02-22 15:27:29 +01:00
parent f36f0052de
commit 37c662e452
2 changed files with 1 additions and 1 deletions
+1
View File
@@ -912,6 +912,7 @@ void Ekf::controlHeightFusion()
if ((_control_status.flags.rng_hgt || _hagl_sensor_status.flags.range_finder) && _range_sensor.isDataHealthy()) {
fuseHaglAllStates();
}
updateTerrainValidity();
}
void Ekf::checkRangeAidSuitability()
@@ -366,5 +366,4 @@ void Ekf::fuseHaglAllStates()
_innov_check_fail_status.flags.reject_ver_pos = true;
}
}
updateTerrainValidity();
}