From 2e494d496be6f9c46793446335177350354924e3 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 4 Oct 2023 23:34:41 +1100 Subject: [PATCH] ArduPlane: allow Plane to run MAV_CMD_MISSION_START as long and int --- ArduPlane/GCS_Mavlink.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ArduPlane/GCS_Mavlink.cpp b/ArduPlane/GCS_Mavlink.cpp index 3186354556..17e3762f59 100644 --- a/ArduPlane/GCS_Mavlink.cpp +++ b/ArduPlane/GCS_Mavlink.cpp @@ -1010,6 +1010,10 @@ MAV_RESULT GCS_MAVLINK_Plane::handle_command_int_packet(const mavlink_command_in } return MAV_RESULT_FAILED; + case MAV_CMD_MISSION_START: + plane.set_mode(plane.mode_auto, ModeReason::GCS_COMMAND); + return MAV_RESULT_ACCEPTED; + default: return GCS_MAVLINK::handle_command_int_packet(packet, msg); } @@ -1057,10 +1061,6 @@ MAV_RESULT GCS_MAVLINK_Plane::handle_command_long_packet(const mavlink_command_l } #endif // HAL_QUADPLANE_ENABLED - case MAV_CMD_MISSION_START: - plane.set_mode(plane.mode_auto, ModeReason::GCS_COMMAND); - return MAV_RESULT_ACCEPTED; - default: return GCS_MAVLINK::handle_command_long_packet(packet, msg); }