mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 06:13:34 +08:00
EKF: capture innovation checks and reset events in separate variables
rename the innovation check status class variable and remove the reset flags from it.
This commit is contained in:
@@ -117,10 +117,10 @@ void Ekf::fuseHagl()
|
||||
_terrain_var = fmaxf(_terrain_var * (1.0f - gain), 0.0f);
|
||||
// record last successful fusion event
|
||||
_time_last_hagl_fuse = _time_last_imu;
|
||||
_sensor_fault_status.flags.reject_hagl = false;
|
||||
_innov_check_fail_status.flags.reject_hagl = false;
|
||||
|
||||
} else {
|
||||
_sensor_fault_status.flags.reject_hagl = true;
|
||||
_innov_check_fail_status.flags.reject_hagl = true;
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user