From 80753430e8da2f4cf841d109243a23d50d0409f2 Mon Sep 17 00:00:00 2001 From: Raouf Date: Wed, 8 Aug 2018 14:02:37 +0900 Subject: [PATCH] Rover: Accept DO_SET_REVERSE command --- APMrover2/GCS_Mavlink.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/APMrover2/GCS_Mavlink.cpp b/APMrover2/GCS_Mavlink.cpp index 8a1a677e3d..77fe48bada 100644 --- a/APMrover2/GCS_Mavlink.cpp +++ b/APMrover2/GCS_Mavlink.cpp @@ -693,6 +693,13 @@ MAV_RESULT GCS_MAVLINK_Rover::handle_command_long_packet(const mavlink_command_l } return MAV_RESULT_ACCEPTED; + case MAV_CMD_DO_SET_REVERSE: + // param1 : Direction (0=Forward, 1=Reverse) + if(!rover.control_mode->set_reversed(packet.param1)) { + return MAV_RESULT_FAILED; + } + return MAV_RESULT_ACCEPTED; + case MAV_CMD_DO_SET_HOME: { // param1 : use current (1=use current location, 0=use specified location)