mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-27 18:27:05 +08:00
mission: add RTL to is_mission_item_reached_or_completed()
This ensures that a mission is marked as completed when RTL is the last item or that the mission can continue if there is an intermediate RTL.
This commit is contained in:
@@ -96,6 +96,7 @@ MissionBlock::is_mission_item_reached_or_completed()
|
|||||||
case NAV_CMD_SET_CAMERA_FOCUS:
|
case NAV_CMD_SET_CAMERA_FOCUS:
|
||||||
case NAV_CMD_DO_CHANGE_SPEED:
|
case NAV_CMD_DO_CHANGE_SPEED:
|
||||||
case NAV_CMD_DO_SET_HOME:
|
case NAV_CMD_DO_SET_HOME:
|
||||||
|
case NAV_CMD_RETURN_TO_LAUNCH:
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user