mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 22:43:34 +08:00
ekf: force fallback to baro if GPS is stopped while in GPS height mode
Otherwise, no height aiding source is used
This commit is contained in:
committed by
Mathieu Bresciani
parent
0a140ec59a
commit
8873e92c7c
@@ -1509,7 +1509,11 @@ void Ekf::stopGpsFusion()
|
|||||||
void Ekf::stopGpsPosFusion()
|
void Ekf::stopGpsPosFusion()
|
||||||
{
|
{
|
||||||
_control_status.flags.gps = false;
|
_control_status.flags.gps = false;
|
||||||
_control_status.flags.gps_hgt = false;
|
|
||||||
|
if (_control_status.flags.gps_hgt) {
|
||||||
|
startBaroHgtFusion();
|
||||||
|
}
|
||||||
|
|
||||||
_gps_pos_innov.setZero();
|
_gps_pos_innov.setZero();
|
||||||
_gps_pos_innov_var.setZero();
|
_gps_pos_innov_var.setZero();
|
||||||
_gps_pos_test_ratio.setZero();
|
_gps_pos_test_ratio.setZero();
|
||||||
|
|||||||
Reference in New Issue
Block a user