From ec7a8c004bb746b03b78d3b1f4a1ca25e7f55770 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Tue, 9 Jul 2019 16:46:51 +0200 Subject: [PATCH] List in Supported modes --- .../APM/ArduPlaneFirmwarePlugin.cc | 42 +++++++++---------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/src/FirmwarePlugin/APM/ArduPlaneFirmwarePlugin.cc b/src/FirmwarePlugin/APM/ArduPlaneFirmwarePlugin.cc index eaa2ba039f..03ec7a3399 100644 --- a/src/FirmwarePlugin/APM/ArduPlaneFirmwarePlugin.cc +++ b/src/FirmwarePlugin/APM/ArduPlaneFirmwarePlugin.cc @@ -40,27 +40,27 @@ APMPlaneMode::APMPlaneMode(uint32_t mode, bool settable) ArduPlaneFirmwarePlugin::ArduPlaneFirmwarePlugin(void) { - QList supportedFlightModes; - supportedFlightModes << APMPlaneMode(APMPlaneMode::MANUAL ,true); - supportedFlightModes << APMPlaneMode(APMPlaneMode::CIRCLE ,true); - supportedFlightModes << APMPlaneMode(APMPlaneMode::STABILIZE ,true); - supportedFlightModes << APMPlaneMode(APMPlaneMode::TRAINING ,true); - supportedFlightModes << APMPlaneMode(APMPlaneMode::ACRO ,true); - supportedFlightModes << APMPlaneMode(APMPlaneMode::FLY_BY_WIRE_A ,true); - supportedFlightModes << APMPlaneMode(APMPlaneMode::FLY_BY_WIRE_B ,true); - supportedFlightModes << APMPlaneMode(APMPlaneMode::CRUISE ,true); - supportedFlightModes << APMPlaneMode(APMPlaneMode::AUTOTUNE ,true); - supportedFlightModes << APMPlaneMode(APMPlaneMode::AUTO ,true); - supportedFlightModes << APMPlaneMode(APMPlaneMode::RTL ,true); - supportedFlightModes << APMPlaneMode(APMPlaneMode::LOITER ,true); - supportedFlightModes << APMPlaneMode(APMPlaneMode::GUIDED ,true); - 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); - supportedFlightModes << APMPlaneMode(APMPlaneMode::QRTL ,true); - setSupportedModes(supportedFlightModes); + setSupportedModes({ + APMPlaneMode(APMPlaneMode::MANUAL ,true), + APMPlaneMode(APMPlaneMode::CIRCLE ,true), + APMPlaneMode(APMPlaneMode::STABILIZE ,true), + APMPlaneMode(APMPlaneMode::TRAINING ,true), + APMPlaneMode(APMPlaneMode::ACRO ,true), + APMPlaneMode(APMPlaneMode::FLY_BY_WIRE_A ,true), + APMPlaneMode(APMPlaneMode::FLY_BY_WIRE_B ,true), + APMPlaneMode(APMPlaneMode::CRUISE ,true), + APMPlaneMode(APMPlaneMode::AUTOTUNE ,true), + APMPlaneMode(APMPlaneMode::AUTO ,true), + APMPlaneMode(APMPlaneMode::RTL ,true), + APMPlaneMode(APMPlaneMode::LOITER ,true), + APMPlaneMode(APMPlaneMode::GUIDED ,true), + APMPlaneMode(APMPlaneMode::INITIALIZING ,false), + APMPlaneMode(APMPlaneMode::QSTABILIZE ,true), + APMPlaneMode(APMPlaneMode::QHOVER ,true), + APMPlaneMode(APMPlaneMode::QLOITER ,true), + APMPlaneMode(APMPlaneMode::QLAND ,true), + APMPlaneMode(APMPlaneMode::QRTL ,true), + }); if (!_remapParamNameIntialized) { FirmwarePlugin::remapParamNameMap_t& remapV3_10 = _remapParamName[3][10]; -- GitLab