16 Q_PROPERTY(QString modeParamPrefix MEMBER _modeParamPrefix CONSTANT)
17 Q_PROPERTY(QString modeChannelParam MEMBER _modeChannelParam CONSTANT)
19 Q_PROPERTY(
int channelCount MEMBER _channelCount CONSTANT)
21 Q_PROPERTY(
bool simpleModesSupported MEMBER _simpleModesSupported CONSTANT)
22 Q_PROPERTY(QStringList simpleModeNames MEMBER _simpleModeNames CONSTANT)
38 Q_INVOKABLE
void setSimpleMode(
int fltModeIndex,
bool enabled);
52 void channelValuesChanged(QVector<int> pwmValues);
53 void _updateSimpleParamsFromSimpleMode();
54 void _setupSimpleModeEnabled();
57 Fact *_simpleModeFact =
nullptr;
58 Fact *_superSimpleModeFact =
nullptr;
59 const bool _simpleModesSupported =
false;
60 int _activeFlightMode = 0;
63 QString _modeChannelParam;
64 QString _modeParamPrefix;
65 const QStringList _simpleModeNames = { tr(
"Off"), tr(
"Simple"), tr(
"Super-Simple"), tr(
"Custom") };
66 QVariantList _rgChannelOptionEnabled;
68 QVariantList _simpleModeEnabled;
69 QVariantList _superSimpleModeEnabled;
71 static constexpr uint8_t _allSimpleBits = 0x3F;
72 static constexpr int _cChannelOptions = 11;
73 static constexpr int _cSimpleModeBits = 8;
74 static constexpr int _cFltModes = 6;
76 static constexpr const char *_simpleParamName =
"SIMPLE";
77 static constexpr const char *_superSimpleParamName =
"SUPER_SIMPLE";