EKF: capture HAGL innovation test failures

This commit is contained in:
Paul Riseborough
2016-05-23 16:49:44 +10:00
parent 8125717bf5
commit d80e71a499
+6 -2
View File
@@ -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;