From 3e7c427a15803c0b96fe50832b342f28476274d6 Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Thu, 18 Apr 2019 10:38:24 -0700 Subject: [PATCH] Add FOLLOW flight mode --- src/FirmwarePlugin/APM/ArduRoverFirmwarePlugin.cc | 2 ++ src/FirmwarePlugin/APM/ArduRoverFirmwarePlugin.h | 1 + 2 files changed, 3 insertions(+) diff --git a/src/FirmwarePlugin/APM/ArduRoverFirmwarePlugin.cc b/src/FirmwarePlugin/APM/ArduRoverFirmwarePlugin.cc index b75fb2f39d..01947c4c24 100644 --- a/src/FirmwarePlugin/APM/ArduRoverFirmwarePlugin.cc +++ b/src/FirmwarePlugin/APM/ArduRoverFirmwarePlugin.cc @@ -22,6 +22,7 @@ APMRoverMode::APMRoverMode(uint32_t mode, bool settable) enumToString.insert(STEERING, "Steering"); enumToString.insert(HOLD, "Hold"); enumToString.insert(LOITER, "Loiter"); + enumToString.insert(FOLLOW, "Follow"); enumToString.insert(SIMPLE, "Simple"); enumToString.insert(AUTO, "Auto"); enumToString.insert(RTL, "RTL"); @@ -40,6 +41,7 @@ ArduRoverFirmwarePlugin::ArduRoverFirmwarePlugin(void) supportedFlightModes << APMRoverMode(APMRoverMode::STEERING ,true); supportedFlightModes << APMRoverMode(APMRoverMode::HOLD ,true); supportedFlightModes << APMRoverMode(APMRoverMode::LOITER ,true); + supportedFlightModes << APMRoverMode(APMRoverMode::FOLLOW ,true); supportedFlightModes << APMRoverMode(APMRoverMode::SIMPLE ,true); supportedFlightModes << APMRoverMode(APMRoverMode::AUTO ,true); supportedFlightModes << APMRoverMode(APMRoverMode::RTL ,true); diff --git a/src/FirmwarePlugin/APM/ArduRoverFirmwarePlugin.h b/src/FirmwarePlugin/APM/ArduRoverFirmwarePlugin.h index 98d932ec32..64d61334f5 100644 --- a/src/FirmwarePlugin/APM/ArduRoverFirmwarePlugin.h +++ b/src/FirmwarePlugin/APM/ArduRoverFirmwarePlugin.h @@ -25,6 +25,7 @@ public: STEERING = 3, HOLD = 4, LOITER = 5, + FOLLOW = 6, SIMPLE = 7, AUTO = 10, RTL = 11, -- GitLab