Browse Source

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

sbg
Dennis Mannhart 7 years ago committed by Daniel Agar
parent
commit
bb9f8c3b44
  1. 2
      src/modules/navigator/navigator_main.cpp

2
src/modules/navigator/navigator_main.cpp

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

Loading…
Cancel
Save