Commit 26a94703 authored by Don Gagne's avatar Don Gagne

Merge pull request #3065 from DonLakeFlyer/QuadPlaneModes

Add new QuadPlane flight modes
parents 1ba1841b ab024a66
...@@ -44,6 +44,10 @@ APMPlaneMode::APMPlaneMode(uint32_t mode, bool settable) ...@@ -44,6 +44,10 @@ APMPlaneMode::APMPlaneMode(uint32_t mode, bool settable)
enumToString.insert(LOITER, "Loiter"); enumToString.insert(LOITER, "Loiter");
enumToString.insert(GUIDED, "Guided"); enumToString.insert(GUIDED, "Guided");
enumToString.insert(INITIALIZING, "Initializing"); enumToString.insert(INITIALIZING, "Initializing");
enumToString.insert(QSTABILIZE, "QuadPlane Stabilize");
enumToString.insert(QHOVER, "QuadPlane Hover");
enumToString.insert(QLOITER, "QuadPlane Loiter");
enumToString.insert(QLAND, "QuadPlane Land");
setEnumToStringMapping(enumToString); setEnumToStringMapping(enumToString);
} }
...@@ -65,5 +69,9 @@ ArduPlaneFirmwarePlugin::ArduPlaneFirmwarePlugin(void) ...@@ -65,5 +69,9 @@ ArduPlaneFirmwarePlugin::ArduPlaneFirmwarePlugin(void)
supportedFlightModes << APMPlaneMode(APMPlaneMode::LOITER ,true); supportedFlightModes << APMPlaneMode(APMPlaneMode::LOITER ,true);
supportedFlightModes << APMPlaneMode(APMPlaneMode::GUIDED ,true); supportedFlightModes << APMPlaneMode(APMPlaneMode::GUIDED ,true);
supportedFlightModes << APMPlaneMode(APMPlaneMode::INITIALIZING ,false); supportedFlightModes << APMPlaneMode(APMPlaneMode::INITIALIZING ,false);
supportedFlightModes << APMPlaneMode(APMPlaneMode::QSTABILIZE ,true);
supportedFlightModes << APMPlaneMode(APMPlaneMode::QHOVER ,true);
supportedFlightModes << APMPlaneMode(APMPlaneMode::QLOITER ,true);
supportedFlightModes << APMPlaneMode(APMPlaneMode::QLAND ,true);
setSupportedModes(supportedFlightModes); setSupportedModes(supportedFlightModes);
} }
...@@ -49,9 +49,13 @@ public: ...@@ -49,9 +49,13 @@ public:
RESERVED_13 = 13, // RESERVED FOR FUTURE USE RESERVED_13 = 13, // RESERVED FOR FUTURE USE
RESERVED_14 = 14, // RESERVED FOR FUTURE USE RESERVED_14 = 14, // RESERVED FOR FUTURE USE
GUIDED = 15, GUIDED = 15,
INITIALIZING = 16 INITIALIZING = 16,
QSTABILIZE = 17,
QHOVER = 18,
QLOITER = 19,
QLAND = 20,
modeCount
}; };
static const int modeCount = 17;
APMPlaneMode(uint32_t mode, bool settable); APMPlaneMode(uint32_t mode, bool settable);
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment