Skip to content

Commit

Permalink
Navigator: Fix RTL backtransition for VTOL
Browse files Browse the repository at this point in the history
A recent change removed the command forwarding required for VTOL transitions. This change brings this back.

Partially reverts #7249
  • Loading branch information
LorenzMeier committed Jun 15, 2017
1 parent e4a221b commit 339b829
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/modules/navigator/rtl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,11 @@ RTL::set_rtl_item()

reset_mission_item_reached();

/* execute command if set. This is required for commands like VTOL transition */
if (!item_contains_position(&_mission_item)) {
issue_command(&_mission_item);
}

/* convert mission item to current position setpoint and make it valid */
mission_item_to_position_setpoint(&_mission_item, &pos_sp_triplet->current);
pos_sp_triplet->next.valid = false;
Expand Down

0 comments on commit 339b829

Please sign in to comment.