mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-23 15:07:34 +08:00
EKF: Fix bug causing simultaneous range and baro height fusion (#429)
This commit is contained in:
+2
-4
@@ -836,8 +836,7 @@ void Ekf::controlHeightFusion()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if (_baro_data_ready && !_baro_hgt_faulty &&
|
} else if (!_in_range_aid_mode && _baro_data_ready && !_baro_hgt_faulty) {
|
||||||
!(_in_range_aid_mode && !_range_data_ready && !_rng_hgt_faulty)) {
|
|
||||||
setControlBaroHeight();
|
setControlBaroHeight();
|
||||||
_fuse_height = true;
|
_fuse_height = true;
|
||||||
_in_range_aid_mode = false;
|
_in_range_aid_mode = false;
|
||||||
@@ -920,8 +919,7 @@ void Ekf::controlHeightFusion()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if (_gps_data_ready && !_gps_hgt_faulty &&
|
} else if (!_in_range_aid_mode && _gps_data_ready && !_gps_hgt_faulty) {
|
||||||
!(_in_range_aid_mode && !_range_data_ready && !_rng_hgt_faulty)) {
|
|
||||||
setControlGPSHeight();
|
setControlGPSHeight();
|
||||||
_fuse_height = true;
|
_fuse_height = true;
|
||||||
_in_range_aid_mode = false;
|
_in_range_aid_mode = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user