mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-02 17:11:36 +08:00
Navigator: Fix RTL backtransition for VTOL
A recent change removed the command forwarding required for VTOL transitions. This change brings this back. Partially reverts https://github.com/PX4/Firmware/pull/7249
This commit is contained in:
@@ -300,6 +300,11 @@ RTL::set_rtl_item()
|
|||||||
|
|
||||||
reset_mission_item_reached();
|
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 */
|
/* convert mission item to current position setpoint and make it valid */
|
||||||
mission_item_to_position_setpoint(&_mission_item, &pos_sp_triplet->current);
|
mission_item_to_position_setpoint(&_mission_item, &pos_sp_triplet->current);
|
||||||
pos_sp_triplet->next.valid = false;
|
pos_sp_triplet->next.valid = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user