mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-28 10:46:33 +08:00
ekf2: optical flow update last hor vel timestamp on success
This commit is contained in:
@@ -99,6 +99,8 @@ bool Ekf::fuseOptFlow(VectorState &H, const bool update_terrain)
|
|||||||
_aid_src_optical_flow.time_last_fuse = _time_delayed_us;
|
_aid_src_optical_flow.time_last_fuse = _time_delayed_us;
|
||||||
_aid_src_optical_flow.fused = true;
|
_aid_src_optical_flow.fused = true;
|
||||||
|
|
||||||
|
_time_last_hor_vel_fuse = _time_delayed_us;
|
||||||
|
|
||||||
if (update_terrain) {
|
if (update_terrain) {
|
||||||
_time_last_terrain_fuse = _time_delayed_us;
|
_time_last_terrain_fuse = _time_delayed_us;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user