mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-30 04:06:33 +08:00
ekf2: airspeed update last hor vel timestamp if successfully updating all states
This commit is contained in:
@@ -217,6 +217,10 @@ void Ekf::fuseAirspeed(const airspeedSample &airspeed_sample, estimator_aid_sour
|
|||||||
|
|
||||||
if (is_fused) {
|
if (is_fused) {
|
||||||
aid_src.time_last_fuse = _time_delayed_us;
|
aid_src.time_last_fuse = _time_delayed_us;
|
||||||
|
|
||||||
|
if (!update_wind_only) {
|
||||||
|
_time_last_hor_vel_fuse = _time_delayed_us;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user