navigator set cruising speed/throttle for reposition (#8096)

This commit is contained in:
Dennis Mannhart
2017-10-11 16:30:03 +02:00
committed by Daniel Agar
parent d1500dca6f
commit bb9f8c3b44

View File

@@ -385,6 +385,8 @@ Navigator::task_main()
rep->current.loiter_radius = get_loiter_radius();
rep->current.loiter_direction = 1;
rep->current.type = position_setpoint_s::SETPOINT_TYPE_LOITER;
rep->current.cruising_speed = get_cruising_speed();
rep->current.cruising_throttle = get_cruising_throttle();
// Go on and check which changes had been requested
if (PX4_ISFINITE(cmd.param4)) {