mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-02 03:49:12 +08:00
mc_pos_control: timestamp fix for vel_sp
This commit is contained in:
committed by
Beat Küng
parent
a66a25b884
commit
299c40f627
@@ -1692,6 +1692,7 @@ MulticopterPositionControl::control_position(float dt)
|
|||||||
|
|
||||||
_vel_sp_prev = _vel_sp;
|
_vel_sp_prev = _vel_sp;
|
||||||
|
|
||||||
|
_global_vel_sp.timestamp = hrt_absolute_time();
|
||||||
_global_vel_sp.vx = _vel_sp(0);
|
_global_vel_sp.vx = _vel_sp(0);
|
||||||
_global_vel_sp.vy = _vel_sp(1);
|
_global_vel_sp.vy = _vel_sp(1);
|
||||||
_global_vel_sp.vz = _vel_sp(2);
|
_global_vel_sp.vz = _vel_sp(2);
|
||||||
|
|||||||
Reference in New Issue
Block a user