mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 06:53:34 +08:00
EKF: Remove use of vehicle arm status
Use single externally set in-air status for all decisions
This commit is contained in:
@@ -55,7 +55,7 @@ bool Ekf::initHagl()
|
||||
// success
|
||||
return true;
|
||||
|
||||
} else if (!_in_air) {
|
||||
} else if (!_control_status.flags.in_air) {
|
||||
// if on ground we assume a ground clearance
|
||||
_terrain_vpos = _state.pos(2) + _params.rng_gnd_clearance;
|
||||
// Use the ground clearance value as our uncertainty
|
||||
|
||||
Reference in New Issue
Block a user