mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-08 04:01:35 +08:00
update terrain validity all the time
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user