mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-08 04:11:36 +08:00
ekf2: add observation method for HAGL
This commit is contained in:
@@ -901,18 +901,18 @@ void Ekf::controlHeightFusion()
|
||||
fuseGpsHgt();
|
||||
}
|
||||
|
||||
} else if (_control_status.flags.rng_hgt) {
|
||||
|
||||
if (_range_sensor.isDataHealthy()) {
|
||||
fuseRngHgt();
|
||||
}
|
||||
|
||||
} else if (_control_status.flags.ev_hgt) {
|
||||
|
||||
if (_control_status.flags.ev_hgt && _ev_data_ready) {
|
||||
fuseEvHgt();
|
||||
}
|
||||
}
|
||||
|
||||
// Fuse range finder data if available
|
||||
const bool use_for_hagl = _terrain_initialised && shouldUseRangeFinderForHagl();
|
||||
if ((use_for_hagl || _control_status.flags.rng_hgt) && _range_sensor.isDataHealthy()) {
|
||||
fuseHaglAllStates();
|
||||
}
|
||||
}
|
||||
|
||||
void Ekf::checkRangeAidSuitability()
|
||||
|
||||
Reference in New Issue
Block a user