mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 17:43:34 +08:00
Update time of last fusion event really only if fused
Except for the velpos fusion
This commit is contained in:
committed by
Mathieu Bresciani
parent
efd96db49d
commit
05855b7fc1
@@ -250,7 +250,6 @@ void Ekf::fuseGpsYaw()
|
||||
}
|
||||
|
||||
if (healthy) {
|
||||
_time_last_gps_yaw_fuse = _time_last_imu;
|
||||
// apply the covariance corrections
|
||||
P -= KHP;
|
||||
|
||||
@@ -259,6 +258,7 @@ void Ekf::fuseGpsYaw()
|
||||
// apply the state corrections
|
||||
fuse(Kfusion, _heading_innov);
|
||||
|
||||
_time_last_gps_yaw_fuse = _time_last_imu;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user