mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-19 23:43:34 +08:00
Add default initializers and timestamp in local position
This commit is contained in:
@@ -788,6 +788,7 @@ MulticopterPositionControl::task_main()
|
||||
}
|
||||
|
||||
/* fill local position setpoint */
|
||||
_local_pos_sp.timestamp = hrt_absolute_time();
|
||||
_local_pos_sp.x = _pos_sp(0);
|
||||
_local_pos_sp.y = _pos_sp(1);
|
||||
_local_pos_sp.z = _pos_sp(2);
|
||||
|
||||
Reference in New Issue
Block a user