diff --git a/src/FirmwarePlugin/APM/ArduPlaneFirmwarePlugin.cc b/src/FirmwarePlugin/APM/ArduPlaneFirmwarePlugin.cc index baf23f93adb..7ae0de9b468 100644 --- a/src/FirmwarePlugin/APM/ArduPlaneFirmwarePlugin.cc +++ b/src/FirmwarePlugin/APM/ArduPlaneFirmwarePlugin.cc @@ -38,6 +38,8 @@ ArduPlaneFirmwarePlugin::ArduPlaneFirmwarePlugin(void) , _qAutotuneFlightMode (tr("QuadPlane AutoTune")) , _qAcroFlightMode (tr("QuadPlane Acro")) , _thermalFlightMode (tr("Thermal")) + , _loiter2qlandFlightMode(tr("Loiter to QLand")) + , _autolandFlightMode (tr("Autoland")) { _setModeEnumToModeStringMapping({ {APMPlaneMode::MANUAL , _manualFlightMode }, @@ -64,6 +66,9 @@ ArduPlaneFirmwarePlugin::ArduPlaneFirmwarePlugin(void) {APMPlaneMode::QAUTOTUNE , _qAutotuneFlightMode }, {APMPlaneMode::QACRO , _qAcroFlightMode }, {APMPlaneMode::THERMAL , _thermalFlightMode }, + {APMPlaneMode::LOITER2QLAND , _loiter2qlandFlightMode}, + {APMPlaneMode::AUTOLAND , _autolandFlightMode }, + }); updateAvailableFlightModes({ @@ -92,6 +97,8 @@ ArduPlaneFirmwarePlugin::ArduPlaneFirmwarePlugin(void) { _qAutotuneFlightMode , APMPlaneMode::QAUTOTUNE , true , true }, { _qAcroFlightMode , APMPlaneMode::QACRO , true , true }, { _thermalFlightMode , APMPlaneMode::THERMAL , true , true }, + { _loiter2qlandFlightMode , APMPlaneMode::LOITER2QLAND , true , true }, + { _autolandFlightMode , APMPlaneMode::AUTOLAND , true , true }, }); if (!_remapParamNameIntialized) { diff --git a/src/FirmwarePlugin/APM/ArduPlaneFirmwarePlugin.h b/src/FirmwarePlugin/APM/ArduPlaneFirmwarePlugin.h index a27e969e1ac..a6e022289a9 100644 --- a/src/FirmwarePlugin/APM/ArduPlaneFirmwarePlugin.h +++ b/src/FirmwarePlugin/APM/ArduPlaneFirmwarePlugin.h @@ -43,6 +43,8 @@ struct APMPlaneMode QAUTOTUNE = 22, QACRO = 23, THERMAL = 24, + LOITER2QLAND = 25, + AUTOLAND = 26, }; }; @@ -91,6 +93,8 @@ class ArduPlaneFirmwarePlugin : public APMFirmwarePlugin QString _qAutotuneFlightMode ; QString _qAcroFlightMode ; QString _thermalFlightMode ; + QString _loiter2qlandFlightMode ; + QString _autolandFlightMode ; private: static bool _remapParamNameIntialized; static FirmwarePlugin::remapParamNameMajorVersionMap_t _remapParamName;