mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-17 05:17:35 +08:00
EKF: capture HAGL innovation test failures
This commit is contained in:
@@ -115,10 +115,14 @@ void Ekf::fuseHagl()
|
||||
_terrain_vpos -= gain * _hagl_innov;
|
||||
// correct the variance
|
||||
_terrain_var = fmaxf(_terrain_var * (1.0f - gain), 0.0f);
|
||||
// record last successful fusion time
|
||||
// record last successful fusion event
|
||||
_time_last_hagl_fuse = _time_last_imu;
|
||||
}
|
||||
_sensor_fault_status.flags.reject_hagl = false;
|
||||
|
||||
} else {
|
||||
_sensor_fault_status.flags.reject_hagl = true;
|
||||
|
||||
}
|
||||
|
||||
} else {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user