More stringified values
This commit is contained in:
@@ -396,7 +396,7 @@ PACK(struct TelemetrySensor {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
PACK(struct TrainerModuleData {
|
PACK(struct TrainerModuleData {
|
||||||
uint8_t mode;
|
uint8_t mode ENUM(TrainerMode);
|
||||||
uint8_t channelsStart;
|
uint8_t channelsStart;
|
||||||
int8_t channelsCount; // 0=8 channels
|
int8_t channelsCount; // 0=8 channels
|
||||||
int8_t frameLength;
|
int8_t frameLength;
|
||||||
@@ -558,7 +558,7 @@ typedef uint8_t swarnenable_t;
|
|||||||
NOBACKUP(swarnstate_t switchWarningState CUST(r_swtchWarn,w_swtchWarn));
|
NOBACKUP(swarnstate_t switchWarningState CUST(r_swtchWarn,w_swtchWarn));
|
||||||
#else
|
#else
|
||||||
#define SWITCHES_WARNING_DATA \
|
#define SWITCHES_WARNING_DATA \
|
||||||
swarnstate_t switchWarningState; \
|
swarnstate_t switchWarningState CUST(r_swtchWarn,w_swtchWarn); \
|
||||||
swarnenable_t switchWarningEnable; // TODO remove it in 2.4
|
swarnenable_t switchWarningEnable; // TODO remove it in 2.4
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -723,7 +723,7 @@ PACK(struct CalibData {
|
|||||||
|
|
||||||
PACK(struct TrainerMix {
|
PACK(struct TrainerMix {
|
||||||
uint8_t srcChn:6; // 0-7 = ch1-8
|
uint8_t srcChn:6; // 0-7 = ch1-8
|
||||||
uint8_t mode:2; // off,add-mode,subst-mode
|
uint8_t mode:2 ENUM(TrainerMultiplex); // off,add-mode,subst-mode
|
||||||
int8_t studWeight;
|
int8_t studWeight;
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -748,8 +748,8 @@ PACK(struct TrainerData {
|
|||||||
|
|
||||||
#if defined(PCBHORUS) || defined(PCBNV14)
|
#if defined(PCBHORUS) || defined(PCBNV14)
|
||||||
#define EXTRA_GENERAL_FIELDS \
|
#define EXTRA_GENERAL_FIELDS \
|
||||||
NOBACKUP(uint8_t auxSerialMode:4); \
|
NOBACKUP(uint8_t auxSerialMode:4 ENUM(UartModes)); \
|
||||||
NOBACKUP(uint8_t aux2SerialMode:4); \
|
NOBACKUP(uint8_t aux2SerialMode:4 ENUM(UartModes)); \
|
||||||
CUST_ARRAY(sticksConfig, struct_sticksConfig, stick_name_valid); \
|
CUST_ARRAY(sticksConfig, struct_sticksConfig, stick_name_valid); \
|
||||||
swconfig_t switchConfig ARRAY(2,struct_switchConfig,nullptr); \
|
swconfig_t switchConfig ARRAY(2,struct_switchConfig,nullptr); \
|
||||||
uint16_t potsConfig ARRAY(2,struct_potConfig,nullptr); /* two bits per pot */ \
|
uint16_t potsConfig ARRAY(2,struct_potConfig,nullptr); /* two bits per pot */ \
|
||||||
@@ -769,7 +769,7 @@ PACK(struct TrainerData {
|
|||||||
#define BLUETOOTH_FIELDS
|
#define BLUETOOTH_FIELDS
|
||||||
#endif
|
#endif
|
||||||
#define EXTRA_GENERAL_FIELDS \
|
#define EXTRA_GENERAL_FIELDS \
|
||||||
uint8_t auxSerialMode:4; \
|
uint8_t auxSerialMode:4 ENUM(UartModes); \
|
||||||
uint8_t slidersConfig:4 ARRAY(1,struct_sliderConfig,nullptr); \
|
uint8_t slidersConfig:4 ARRAY(1,struct_sliderConfig,nullptr); \
|
||||||
uint8_t potsConfig ARRAY(2,struct_potConfig,nullptr); /* two bits per pot */\
|
uint8_t potsConfig ARRAY(2,struct_potConfig,nullptr); /* two bits per pot */\
|
||||||
uint8_t backlightColor; \
|
uint8_t backlightColor; \
|
||||||
@@ -849,7 +849,7 @@ PACK(struct RadioData {
|
|||||||
NOBACKUP(uint8_t backlightBright);
|
NOBACKUP(uint8_t backlightBright);
|
||||||
NOBACKUP(uint32_t globalTimer);
|
NOBACKUP(uint32_t globalTimer);
|
||||||
NOBACKUP(uint8_t bluetoothBaudrate:4);
|
NOBACKUP(uint8_t bluetoothBaudrate:4);
|
||||||
NOBACKUP(uint8_t bluetoothMode:4);
|
NOBACKUP(uint8_t bluetoothMode:4 ENUM(BluetoothModes));
|
||||||
NOBACKUP(uint8_t countryCode:2);
|
NOBACKUP(uint8_t countryCode:2);
|
||||||
NOBACKUP(int8_t pwrOnSpeed:3);
|
NOBACKUP(int8_t pwrOnSpeed:3);
|
||||||
NOBACKUP(int8_t pwrOffSpeed:3);
|
NOBACKUP(int8_t pwrOffSpeed:3);
|
||||||
|
|||||||
@@ -1878,7 +1878,7 @@ const luaR_value_entry opentxConstants[] = {
|
|||||||
{ "PREC2", PREC2 },
|
{ "PREC2", PREC2 },
|
||||||
{ "VALUE", INPUT_TYPE_VALUE },
|
{ "VALUE", INPUT_TYPE_VALUE },
|
||||||
{ "SOURCE", INPUT_TYPE_SOURCE },
|
{ "SOURCE", INPUT_TYPE_SOURCE },
|
||||||
{ "REPLACE", MLTPX_REP },
|
{ "REPLACE", MLTPX_REPL },
|
||||||
{ "MIXSRC_MAX", MIXSRC_MAX },
|
{ "MIXSRC_MAX", MIXSRC_MAX },
|
||||||
{ "MIXSRC_FIRST_INPUT", MIXSRC_FIRST_INPUT },
|
{ "MIXSRC_FIRST_INPUT", MIXSRC_FIRST_INPUT },
|
||||||
{ "MIXSRC_Rud", MIXSRC_Rud },
|
{ "MIXSRC_Rud", MIXSRC_Rud },
|
||||||
|
|||||||
+4
-4
@@ -480,11 +480,11 @@ void evalInputs(uint8_t mode)
|
|||||||
vStud *= td->studWeight;
|
vStud *= td->studWeight;
|
||||||
vStud /= 50;
|
vStud /= 50;
|
||||||
switch (td->mode) {
|
switch (td->mode) {
|
||||||
case 1:
|
case TRAINER_ADD:
|
||||||
// add-mode
|
// add-mode
|
||||||
v = limit<int16_t>(-RESX, v+vStud, RESX);
|
v = limit<int16_t>(-RESX, v+vStud, RESX);
|
||||||
break;
|
break;
|
||||||
case 2:
|
case TRAINER_REPL:
|
||||||
// subst-mode
|
// subst-mode
|
||||||
v = vStud;
|
v = vStud;
|
||||||
break;
|
break;
|
||||||
@@ -732,7 +732,7 @@ void evalFlightModeMixes(uint8_t mode, uint8_t tick10ms)
|
|||||||
swOn[i].now = swOn[i].prev = mixEnabled;
|
swOn[i].now = swOn[i].prev = mixEnabled;
|
||||||
}
|
}
|
||||||
if (!mixEnabled) {
|
if (!mixEnabled) {
|
||||||
if ((md->speedDown || md->speedUp) && md->mltpx!=MLTPX_REP) {
|
if ((md->speedDown || md->speedUp) && md->mltpx!=MLTPX_REPL) {
|
||||||
if (mixCondition) {
|
if (mixCondition) {
|
||||||
v = (md->mltpx == MLTPX_ADD ? 0 : RESX);
|
v = (md->mltpx == MLTPX_ADD ? 0 : RESX);
|
||||||
applyOffsetAndCurve = false;
|
applyOffsetAndCurve = false;
|
||||||
@@ -829,7 +829,7 @@ void evalFlightModeMixes(uint8_t mode, uint8_t tick10ms)
|
|||||||
int32_t * ptr = &chans[md->destCh]; // Save calculating address several times
|
int32_t * ptr = &chans[md->destCh]; // Save calculating address several times
|
||||||
|
|
||||||
switch (md->mltpx) {
|
switch (md->mltpx) {
|
||||||
case MLTPX_REP:
|
case MLTPX_REPL:
|
||||||
*ptr = dv;
|
*ptr = dv;
|
||||||
if (mode == e_perout_mode_normal) {
|
if (mode == e_perout_mode_normal) {
|
||||||
for (uint8_t m=i-1; m<MAX_MIXERS && mixAddress(m)->destCh==md->destCh; m--)
|
for (uint8_t m=i-1; m<MAX_MIXERS && mixAddress(m)->destCh==md->destCh; m--)
|
||||||
|
|||||||
@@ -158,9 +158,15 @@ enum CurveRefType {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
enum MixerMultiplex {
|
enum MixerMultiplex {
|
||||||
MLTPX_ADD = 0,
|
MLTPX_ADD = 0,
|
||||||
MLTPX_MUL = 1,
|
MLTPX_MUL = 1,
|
||||||
MLTPX_REP = 2,
|
MLTPX_REPL = 2,
|
||||||
|
};
|
||||||
|
|
||||||
|
enum TrainerMultiplex {
|
||||||
|
TRAINER_OFF = 0,
|
||||||
|
TRAINER_ADD = 1,
|
||||||
|
TRAINER_REPL = 2,
|
||||||
};
|
};
|
||||||
|
|
||||||
#define GV1_SMALL 128
|
#define GV1_SMALL 128
|
||||||
|
|||||||
@@ -60,3 +60,5 @@
|
|||||||
#else
|
#else
|
||||||
#error "Board not supported by YAML storage"
|
#error "Board not supported by YAML storage"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
static_assert(MAX_STR > MAX_RADIODATA_MODELDATA_PARTIALMODEL_STR_LEN);
|
||||||
|
|||||||
@@ -21,6 +21,12 @@ const struct YamlIdStr enum_AntennaModes[] = {
|
|||||||
{ ANTENNA_MODE_LAST, "MODE_LAST" },
|
{ ANTENNA_MODE_LAST, "MODE_LAST" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
|
const struct YamlIdStr enum_TrainerMultiplex[] = {
|
||||||
|
{ TRAINER_OFF, "OFF" },
|
||||||
|
{ TRAINER_ADD, "ADD" },
|
||||||
|
{ TRAINER_REPL, "REPL" },
|
||||||
|
{ 0, NULL }
|
||||||
|
};
|
||||||
const struct YamlIdStr enum_BeeperMode[] = {
|
const struct YamlIdStr enum_BeeperMode[] = {
|
||||||
{ e_mode_quiet, "mode_quiet" },
|
{ e_mode_quiet, "mode_quiet" },
|
||||||
{ e_mode_alarms, "mode_alarms" },
|
{ e_mode_alarms, "mode_alarms" },
|
||||||
@@ -28,6 +34,13 @@ const struct YamlIdStr enum_BeeperMode[] = {
|
|||||||
{ e_mode_all, "mode_all" },
|
{ e_mode_all, "mode_all" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
|
const struct YamlIdStr enum_BluetoothModes[] = {
|
||||||
|
{ BLUETOOTH_OFF, "OFF" },
|
||||||
|
{ BLUETOOTH_TELEMETRY, "TELEMETRY" },
|
||||||
|
{ BLUETOOTH_TRAINER, "TRAINER" },
|
||||||
|
{ BLUETOOTH_MAX, "MAX" },
|
||||||
|
{ 0, NULL }
|
||||||
|
};
|
||||||
const struct YamlIdStr enum_Functions[] = {
|
const struct YamlIdStr enum_Functions[] = {
|
||||||
{ FUNC_OVERRIDE_CHANNEL, "OVERRIDE_CHANNEL" },
|
{ FUNC_OVERRIDE_CHANNEL, "OVERRIDE_CHANNEL" },
|
||||||
{ FUNC_TRAINER, "TRAINER" },
|
{ FUNC_TRAINER, "TRAINER" },
|
||||||
@@ -57,6 +70,16 @@ const struct YamlIdStr enum_Functions[] = {
|
|||||||
{ FUNC_MAX, "MAX" },
|
{ FUNC_MAX, "MAX" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
|
const struct YamlIdStr enum_UartModes[] = {
|
||||||
|
{ UART_MODE_NONE, "MODE_NONE" },
|
||||||
|
{ UART_MODE_TELEMETRY_MIRROR, "MODE_TELEMETRY_MIRROR" },
|
||||||
|
{ UART_MODE_TELEMETRY, "MODE_TELEMETRY" },
|
||||||
|
{ UART_MODE_SBUS_TRAINER, "MODE_SBUS_TRAINER" },
|
||||||
|
{ UART_MODE_LUA, "MODE_LUA" },
|
||||||
|
{ UART_MODE_COUNT, "MODE_COUNT" },
|
||||||
|
{ UART_MODE_MAX, "MODE_MAX" },
|
||||||
|
{ 0, NULL }
|
||||||
|
};
|
||||||
const struct YamlIdStr enum_ZoneOptionValueEnum[] = {
|
const struct YamlIdStr enum_ZoneOptionValueEnum[] = {
|
||||||
{ ZOV_Unsigned, "Unsigned" },
|
{ ZOV_Unsigned, "Unsigned" },
|
||||||
{ ZOV_Signed, "Signed" },
|
{ ZOV_Signed, "Signed" },
|
||||||
@@ -78,7 +101,7 @@ const struct YamlIdStr enum_TimerModes[] = {
|
|||||||
const struct YamlIdStr enum_MixerMultiplex[] = {
|
const struct YamlIdStr enum_MixerMultiplex[] = {
|
||||||
{ MLTPX_ADD, "ADD" },
|
{ MLTPX_ADD, "ADD" },
|
||||||
{ MLTPX_MUL, "MUL" },
|
{ MLTPX_MUL, "MUL" },
|
||||||
{ MLTPX_REP, "REP" },
|
{ MLTPX_REPL, "REPL" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
const struct YamlIdStr enum_MixSources[] = {
|
const struct YamlIdStr enum_MixSources[] = {
|
||||||
@@ -219,6 +242,17 @@ const struct YamlIdStr enum_ModuleType[] = {
|
|||||||
{ MODULE_TYPE_MAX, "TYPE_MAX" },
|
{ MODULE_TYPE_MAX, "TYPE_MAX" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
|
const struct YamlIdStr enum_TrainerMode[] = {
|
||||||
|
{ TRAINER_MODE_OFF, "MODE_OFF" },
|
||||||
|
{ TRAINER_MODE_MASTER_TRAINER_JACK, "MODE_MASTER_TRAINER_JACK" },
|
||||||
|
{ TRAINER_MODE_SLAVE, "MODE_SLAVE" },
|
||||||
|
{ TRAINER_MODE_MASTER_SBUS_EXTERNAL_MODULE, "MODE_MASTER_SBUS_EXTERNAL_MODULE" },
|
||||||
|
{ TRAINER_MODE_MASTER_CPPM_EXTERNAL_MODULE, "MODE_MASTER_CPPM_EXTERNAL_MODULE" },
|
||||||
|
{ TRAINER_MODE_MASTER_BLUETOOTH, "MODE_MASTER_BLUETOOTH" },
|
||||||
|
{ TRAINER_MODE_SLAVE_BLUETOOTH, "MODE_SLAVE_BLUETOOTH" },
|
||||||
|
{ TRAINER_MODE_MULTI, "MODE_MULTI" },
|
||||||
|
{ 0, NULL }
|
||||||
|
};
|
||||||
|
|
||||||
//
|
//
|
||||||
// Structs last
|
// Structs last
|
||||||
@@ -239,7 +273,7 @@ static const struct YamlNode struct_signed_16[] = {
|
|||||||
static const struct YamlNode struct_TrainerMix[] = {
|
static const struct YamlNode struct_TrainerMix[] = {
|
||||||
YAML_IDX,
|
YAML_IDX,
|
||||||
YAML_UNSIGNED( "srcChn", 6 ),
|
YAML_UNSIGNED( "srcChn", 6 ),
|
||||||
YAML_UNSIGNED( "mode", 2 ),
|
YAML_ENUM("mode", 2, enum_TrainerMultiplex),
|
||||||
YAML_SIGNED( "studWeight", 8 ),
|
YAML_SIGNED( "studWeight", 8 ),
|
||||||
YAML_END
|
YAML_END
|
||||||
};
|
};
|
||||||
@@ -347,7 +381,7 @@ static const struct YamlNode struct_RadioData[] = {
|
|||||||
YAML_UNSIGNED( "backlightBright", 8 ),
|
YAML_UNSIGNED( "backlightBright", 8 ),
|
||||||
YAML_UNSIGNED( "globalTimer", 32 ),
|
YAML_UNSIGNED( "globalTimer", 32 ),
|
||||||
YAML_UNSIGNED( "bluetoothBaudrate", 4 ),
|
YAML_UNSIGNED( "bluetoothBaudrate", 4 ),
|
||||||
YAML_UNSIGNED( "bluetoothMode", 4 ),
|
YAML_ENUM("bluetoothMode", 4, enum_BluetoothModes),
|
||||||
YAML_UNSIGNED( "countryCode", 2 ),
|
YAML_UNSIGNED( "countryCode", 2 ),
|
||||||
YAML_SIGNED( "pwrOnSpeed", 3 ),
|
YAML_SIGNED( "pwrOnSpeed", 3 ),
|
||||||
YAML_SIGNED( "pwrOffSpeed", 3 ),
|
YAML_SIGNED( "pwrOffSpeed", 3 ),
|
||||||
@@ -366,8 +400,8 @@ static const struct YamlNode struct_RadioData[] = {
|
|||||||
YAML_SIGNED_CUST( "varioRange", 8, r_vPitch, w_vPitch ),
|
YAML_SIGNED_CUST( "varioRange", 8, r_vPitch, w_vPitch ),
|
||||||
YAML_SIGNED( "varioRepeat", 8 ),
|
YAML_SIGNED( "varioRepeat", 8 ),
|
||||||
YAML_ARRAY("customFn", 72, 64, struct_CustomFunctionData, cfn_is_active),
|
YAML_ARRAY("customFn", 72, 64, struct_CustomFunctionData, cfn_is_active),
|
||||||
YAML_UNSIGNED( "auxSerialMode", 4 ),
|
YAML_ENUM("auxSerialMode", 4, enum_UartModes),
|
||||||
YAML_UNSIGNED( "aux2SerialMode", 4 ),
|
YAML_ENUM("aux2SerialMode", 4, enum_UartModes),
|
||||||
YAML_ARRAY("sticksConfig", 0, 4, struct_sticksConfig, stick_name_valid),
|
YAML_ARRAY("sticksConfig", 0, 4, struct_sticksConfig, stick_name_valid),
|
||||||
YAML_ARRAY("switchConfig", 2, 16, struct_switchConfig, nullptr),
|
YAML_ARRAY("switchConfig", 2, 16, struct_switchConfig, nullptr),
|
||||||
YAML_ARRAY("potsConfig", 2, 8, struct_potConfig, nullptr),
|
YAML_ARRAY("potsConfig", 2, 8, struct_potConfig, nullptr),
|
||||||
@@ -632,7 +666,7 @@ static const struct YamlNode struct_ModuleData[] = {
|
|||||||
YAML_END
|
YAML_END
|
||||||
};
|
};
|
||||||
static const struct YamlNode struct_TrainerModuleData[] = {
|
static const struct YamlNode struct_TrainerModuleData[] = {
|
||||||
YAML_UNSIGNED( "mode", 8 ),
|
YAML_ENUM("mode", 8, enum_TrainerMode),
|
||||||
YAML_UNSIGNED( "channelsStart", 8 ),
|
YAML_UNSIGNED( "channelsStart", 8 ),
|
||||||
YAML_SIGNED( "channelsCount", 8 ),
|
YAML_SIGNED( "channelsCount", 8 ),
|
||||||
YAML_SIGNED( "frameLength", 8 ),
|
YAML_SIGNED( "frameLength", 8 ),
|
||||||
@@ -812,7 +846,7 @@ static const struct YamlNode struct_PartialModel[] = {
|
|||||||
YAML_END
|
YAML_END
|
||||||
};
|
};
|
||||||
|
|
||||||
#define MAX_RADIODATA_MODELDATA_PARTIALMODEL_STR_LEN 24
|
#define MAX_RADIODATA_MODELDATA_PARTIALMODEL_STR_LEN 32
|
||||||
|
|
||||||
static const struct YamlNode __RadioData_root_node = YAML_ROOT( struct_RadioData );
|
static const struct YamlNode __RadioData_root_node = YAML_ROOT( struct_RadioData );
|
||||||
|
|
||||||
|
|||||||
@@ -21,6 +21,12 @@ const struct YamlIdStr enum_AntennaModes[] = {
|
|||||||
{ ANTENNA_MODE_LAST, "MODE_LAST" },
|
{ ANTENNA_MODE_LAST, "MODE_LAST" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
|
const struct YamlIdStr enum_TrainerMultiplex[] = {
|
||||||
|
{ TRAINER_OFF, "OFF" },
|
||||||
|
{ TRAINER_ADD, "ADD" },
|
||||||
|
{ TRAINER_REPL, "REPL" },
|
||||||
|
{ 0, NULL }
|
||||||
|
};
|
||||||
const struct YamlIdStr enum_BeeperMode[] = {
|
const struct YamlIdStr enum_BeeperMode[] = {
|
||||||
{ e_mode_quiet, "mode_quiet" },
|
{ e_mode_quiet, "mode_quiet" },
|
||||||
{ e_mode_alarms, "mode_alarms" },
|
{ e_mode_alarms, "mode_alarms" },
|
||||||
@@ -28,6 +34,13 @@ const struct YamlIdStr enum_BeeperMode[] = {
|
|||||||
{ e_mode_all, "mode_all" },
|
{ e_mode_all, "mode_all" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
|
const struct YamlIdStr enum_BluetoothModes[] = {
|
||||||
|
{ BLUETOOTH_OFF, "OFF" },
|
||||||
|
{ BLUETOOTH_TELEMETRY, "TELEMETRY" },
|
||||||
|
{ BLUETOOTH_TRAINER, "TRAINER" },
|
||||||
|
{ BLUETOOTH_MAX, "MAX" },
|
||||||
|
{ 0, NULL }
|
||||||
|
};
|
||||||
const struct YamlIdStr enum_Functions[] = {
|
const struct YamlIdStr enum_Functions[] = {
|
||||||
{ FUNC_OVERRIDE_CHANNEL, "OVERRIDE_CHANNEL" },
|
{ FUNC_OVERRIDE_CHANNEL, "OVERRIDE_CHANNEL" },
|
||||||
{ FUNC_TRAINER, "TRAINER" },
|
{ FUNC_TRAINER, "TRAINER" },
|
||||||
@@ -57,6 +70,16 @@ const struct YamlIdStr enum_Functions[] = {
|
|||||||
{ FUNC_MAX, "MAX" },
|
{ FUNC_MAX, "MAX" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
|
const struct YamlIdStr enum_UartModes[] = {
|
||||||
|
{ UART_MODE_NONE, "MODE_NONE" },
|
||||||
|
{ UART_MODE_TELEMETRY_MIRROR, "MODE_TELEMETRY_MIRROR" },
|
||||||
|
{ UART_MODE_TELEMETRY, "MODE_TELEMETRY" },
|
||||||
|
{ UART_MODE_SBUS_TRAINER, "MODE_SBUS_TRAINER" },
|
||||||
|
{ UART_MODE_LUA, "MODE_LUA" },
|
||||||
|
{ UART_MODE_COUNT, "MODE_COUNT" },
|
||||||
|
{ UART_MODE_MAX, "MODE_MAX" },
|
||||||
|
{ 0, NULL }
|
||||||
|
};
|
||||||
const struct YamlIdStr enum_TimerModes[] = {
|
const struct YamlIdStr enum_TimerModes[] = {
|
||||||
{ TMRMODE_OFF, "OFF" },
|
{ TMRMODE_OFF, "OFF" },
|
||||||
{ TMRMODE_ON, "ON" },
|
{ TMRMODE_ON, "ON" },
|
||||||
@@ -71,7 +94,7 @@ const struct YamlIdStr enum_TimerModes[] = {
|
|||||||
const struct YamlIdStr enum_MixerMultiplex[] = {
|
const struct YamlIdStr enum_MixerMultiplex[] = {
|
||||||
{ MLTPX_ADD, "ADD" },
|
{ MLTPX_ADD, "ADD" },
|
||||||
{ MLTPX_MUL, "MUL" },
|
{ MLTPX_MUL, "MUL" },
|
||||||
{ MLTPX_REP, "REP" },
|
{ MLTPX_REPL, "REPL" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
const struct YamlIdStr enum_MixSources[] = {
|
const struct YamlIdStr enum_MixSources[] = {
|
||||||
@@ -212,6 +235,17 @@ const struct YamlIdStr enum_ModuleType[] = {
|
|||||||
{ MODULE_TYPE_MAX, "TYPE_MAX" },
|
{ MODULE_TYPE_MAX, "TYPE_MAX" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
|
const struct YamlIdStr enum_TrainerMode[] = {
|
||||||
|
{ TRAINER_MODE_MASTER_TRAINER_JACK, "MODE_MASTER_TRAINER_JACK" },
|
||||||
|
{ TRAINER_MODE_SLAVE, "MODE_SLAVE" },
|
||||||
|
{ TRAINER_MODE_MASTER_SBUS_EXTERNAL_MODULE, "MODE_MASTER_SBUS_EXTERNAL_MODULE" },
|
||||||
|
{ TRAINER_MODE_MASTER_CPPM_EXTERNAL_MODULE, "MODE_MASTER_CPPM_EXTERNAL_MODULE" },
|
||||||
|
{ TRAINER_MODE_MASTER_BATTERY_COMPARTMENT, "MODE_MASTER_BATTERY_COMPARTMENT" },
|
||||||
|
{ TRAINER_MODE_MASTER_BLUETOOTH, "MODE_MASTER_BLUETOOTH" },
|
||||||
|
{ TRAINER_MODE_SLAVE_BLUETOOTH, "MODE_SLAVE_BLUETOOTH" },
|
||||||
|
{ TRAINER_MODE_MULTI, "MODE_MULTI" },
|
||||||
|
{ 0, NULL }
|
||||||
|
};
|
||||||
|
|
||||||
//
|
//
|
||||||
// Structs last
|
// Structs last
|
||||||
@@ -232,7 +266,7 @@ static const struct YamlNode struct_signed_16[] = {
|
|||||||
static const struct YamlNode struct_TrainerMix[] = {
|
static const struct YamlNode struct_TrainerMix[] = {
|
||||||
YAML_IDX,
|
YAML_IDX,
|
||||||
YAML_UNSIGNED( "srcChn", 6 ),
|
YAML_UNSIGNED( "srcChn", 6 ),
|
||||||
YAML_UNSIGNED( "mode", 2 ),
|
YAML_ENUM("mode", 2, enum_TrainerMultiplex),
|
||||||
YAML_SIGNED( "studWeight", 8 ),
|
YAML_SIGNED( "studWeight", 8 ),
|
||||||
YAML_END
|
YAML_END
|
||||||
};
|
};
|
||||||
@@ -321,7 +355,7 @@ static const struct YamlNode struct_RadioData[] = {
|
|||||||
YAML_UNSIGNED( "backlightBright", 8 ),
|
YAML_UNSIGNED( "backlightBright", 8 ),
|
||||||
YAML_UNSIGNED( "globalTimer", 32 ),
|
YAML_UNSIGNED( "globalTimer", 32 ),
|
||||||
YAML_UNSIGNED( "bluetoothBaudrate", 4 ),
|
YAML_UNSIGNED( "bluetoothBaudrate", 4 ),
|
||||||
YAML_UNSIGNED( "bluetoothMode", 4 ),
|
YAML_ENUM("bluetoothMode", 4, enum_BluetoothModes),
|
||||||
YAML_UNSIGNED( "countryCode", 2 ),
|
YAML_UNSIGNED( "countryCode", 2 ),
|
||||||
YAML_SIGNED( "pwrOnSpeed", 3 ),
|
YAML_SIGNED( "pwrOnSpeed", 3 ),
|
||||||
YAML_SIGNED( "pwrOffSpeed", 3 ),
|
YAML_SIGNED( "pwrOffSpeed", 3 ),
|
||||||
@@ -340,7 +374,7 @@ static const struct YamlNode struct_RadioData[] = {
|
|||||||
YAML_SIGNED_CUST( "varioRange", 8, r_vPitch, w_vPitch ),
|
YAML_SIGNED_CUST( "varioRange", 8, r_vPitch, w_vPitch ),
|
||||||
YAML_SIGNED( "varioRepeat", 8 ),
|
YAML_SIGNED( "varioRepeat", 8 ),
|
||||||
YAML_ARRAY("customFn", 88, 64, struct_CustomFunctionData, cfn_is_active),
|
YAML_ARRAY("customFn", 88, 64, struct_CustomFunctionData, cfn_is_active),
|
||||||
YAML_UNSIGNED( "auxSerialMode", 4 ),
|
YAML_ENUM("auxSerialMode", 4, enum_UartModes),
|
||||||
YAML_ARRAY("slidersConfig", 1, 4, struct_sliderConfig, nullptr),
|
YAML_ARRAY("slidersConfig", 1, 4, struct_sliderConfig, nullptr),
|
||||||
YAML_ARRAY("potsConfig", 2, 4, struct_potConfig, nullptr),
|
YAML_ARRAY("potsConfig", 2, 4, struct_potConfig, nullptr),
|
||||||
YAML_UNSIGNED( "backlightColor", 8 ),
|
YAML_UNSIGNED( "backlightColor", 8 ),
|
||||||
@@ -602,7 +636,7 @@ static const struct YamlNode struct_ModuleData[] = {
|
|||||||
YAML_END
|
YAML_END
|
||||||
};
|
};
|
||||||
static const struct YamlNode struct_TrainerModuleData[] = {
|
static const struct YamlNode struct_TrainerModuleData[] = {
|
||||||
YAML_UNSIGNED( "mode", 8 ),
|
YAML_ENUM("mode", 8, enum_TrainerMode),
|
||||||
YAML_UNSIGNED( "channelsStart", 8 ),
|
YAML_UNSIGNED( "channelsStart", 8 ),
|
||||||
YAML_SIGNED( "channelsCount", 8 ),
|
YAML_SIGNED( "channelsCount", 8 ),
|
||||||
YAML_SIGNED( "frameLength", 8 ),
|
YAML_SIGNED( "frameLength", 8 ),
|
||||||
@@ -756,7 +790,7 @@ static const struct YamlNode struct_ModelData[] = {
|
|||||||
YAML_STRUCT("swashR", 64, struct_SwashRingData, NULL),
|
YAML_STRUCT("swashR", 64, struct_SwashRingData, NULL),
|
||||||
YAML_ARRAY("flightModeData", 288, 9, struct_FlightModeData, fmd_is_active),
|
YAML_ARRAY("flightModeData", 288, 9, struct_FlightModeData, fmd_is_active),
|
||||||
YAML_UNSIGNED( "thrTraceSrc", 8 ),
|
YAML_UNSIGNED( "thrTraceSrc", 8 ),
|
||||||
YAML_UNSIGNED( "switchWarningState", 16 ),
|
YAML_UNSIGNED_CUST( "switchWarningState", 16, r_swtchWarn, w_swtchWarn ),
|
||||||
YAML_UNSIGNED( "switchWarningEnable", 8 ),
|
YAML_UNSIGNED( "switchWarningEnable", 8 ),
|
||||||
YAML_ARRAY("gvars", 56, 9, struct_GVarData, NULL),
|
YAML_ARRAY("gvars", 56, 9, struct_GVarData, NULL),
|
||||||
YAML_STRUCT("varioData", 40, struct_VarioData, NULL),
|
YAML_STRUCT("varioData", 40, struct_VarioData, NULL),
|
||||||
@@ -785,7 +819,7 @@ static const struct YamlNode struct_PartialModel[] = {
|
|||||||
YAML_END
|
YAML_END
|
||||||
};
|
};
|
||||||
|
|
||||||
#define MAX_RADIODATA_MODELDATA_PARTIALMODEL_STR_LEN 24
|
#define MAX_RADIODATA_MODELDATA_PARTIALMODEL_STR_LEN 32
|
||||||
|
|
||||||
static const struct YamlNode __RadioData_root_node = YAML_ROOT( struct_RadioData );
|
static const struct YamlNode __RadioData_root_node = YAML_ROOT( struct_RadioData );
|
||||||
|
|
||||||
|
|||||||
@@ -21,6 +21,12 @@ const struct YamlIdStr enum_AntennaModes[] = {
|
|||||||
{ ANTENNA_MODE_LAST, "MODE_LAST" },
|
{ ANTENNA_MODE_LAST, "MODE_LAST" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
|
const struct YamlIdStr enum_TrainerMultiplex[] = {
|
||||||
|
{ TRAINER_OFF, "OFF" },
|
||||||
|
{ TRAINER_ADD, "ADD" },
|
||||||
|
{ TRAINER_REPL, "REPL" },
|
||||||
|
{ 0, NULL }
|
||||||
|
};
|
||||||
const struct YamlIdStr enum_BeeperMode[] = {
|
const struct YamlIdStr enum_BeeperMode[] = {
|
||||||
{ e_mode_quiet, "mode_quiet" },
|
{ e_mode_quiet, "mode_quiet" },
|
||||||
{ e_mode_alarms, "mode_alarms" },
|
{ e_mode_alarms, "mode_alarms" },
|
||||||
@@ -28,6 +34,13 @@ const struct YamlIdStr enum_BeeperMode[] = {
|
|||||||
{ e_mode_all, "mode_all" },
|
{ e_mode_all, "mode_all" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
|
const struct YamlIdStr enum_BluetoothModes[] = {
|
||||||
|
{ BLUETOOTH_OFF, "OFF" },
|
||||||
|
{ BLUETOOTH_TELEMETRY, "TELEMETRY" },
|
||||||
|
{ BLUETOOTH_TRAINER, "TRAINER" },
|
||||||
|
{ BLUETOOTH_MAX, "MAX" },
|
||||||
|
{ 0, NULL }
|
||||||
|
};
|
||||||
const struct YamlIdStr enum_Functions[] = {
|
const struct YamlIdStr enum_Functions[] = {
|
||||||
{ FUNC_OVERRIDE_CHANNEL, "OVERRIDE_CHANNEL" },
|
{ FUNC_OVERRIDE_CHANNEL, "OVERRIDE_CHANNEL" },
|
||||||
{ FUNC_TRAINER, "TRAINER" },
|
{ FUNC_TRAINER, "TRAINER" },
|
||||||
@@ -57,6 +70,16 @@ const struct YamlIdStr enum_Functions[] = {
|
|||||||
{ FUNC_MAX, "MAX" },
|
{ FUNC_MAX, "MAX" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
|
const struct YamlIdStr enum_UartModes[] = {
|
||||||
|
{ UART_MODE_NONE, "MODE_NONE" },
|
||||||
|
{ UART_MODE_TELEMETRY_MIRROR, "MODE_TELEMETRY_MIRROR" },
|
||||||
|
{ UART_MODE_TELEMETRY, "MODE_TELEMETRY" },
|
||||||
|
{ UART_MODE_SBUS_TRAINER, "MODE_SBUS_TRAINER" },
|
||||||
|
{ UART_MODE_LUA, "MODE_LUA" },
|
||||||
|
{ UART_MODE_COUNT, "MODE_COUNT" },
|
||||||
|
{ UART_MODE_MAX, "MODE_MAX" },
|
||||||
|
{ 0, NULL }
|
||||||
|
};
|
||||||
const struct YamlIdStr enum_TimerModes[] = {
|
const struct YamlIdStr enum_TimerModes[] = {
|
||||||
{ TMRMODE_OFF, "OFF" },
|
{ TMRMODE_OFF, "OFF" },
|
||||||
{ TMRMODE_ON, "ON" },
|
{ TMRMODE_ON, "ON" },
|
||||||
@@ -71,7 +94,7 @@ const struct YamlIdStr enum_TimerModes[] = {
|
|||||||
const struct YamlIdStr enum_MixerMultiplex[] = {
|
const struct YamlIdStr enum_MixerMultiplex[] = {
|
||||||
{ MLTPX_ADD, "ADD" },
|
{ MLTPX_ADD, "ADD" },
|
||||||
{ MLTPX_MUL, "MUL" },
|
{ MLTPX_MUL, "MUL" },
|
||||||
{ MLTPX_REP, "REP" },
|
{ MLTPX_REPL, "REPL" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
const struct YamlIdStr enum_MixSources[] = {
|
const struct YamlIdStr enum_MixSources[] = {
|
||||||
@@ -212,6 +235,17 @@ const struct YamlIdStr enum_ModuleType[] = {
|
|||||||
{ MODULE_TYPE_MAX, "TYPE_MAX" },
|
{ MODULE_TYPE_MAX, "TYPE_MAX" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
|
const struct YamlIdStr enum_TrainerMode[] = {
|
||||||
|
{ TRAINER_MODE_MASTER_TRAINER_JACK, "MODE_MASTER_TRAINER_JACK" },
|
||||||
|
{ TRAINER_MODE_SLAVE, "MODE_SLAVE" },
|
||||||
|
{ TRAINER_MODE_MASTER_SBUS_EXTERNAL_MODULE, "MODE_MASTER_SBUS_EXTERNAL_MODULE" },
|
||||||
|
{ TRAINER_MODE_MASTER_CPPM_EXTERNAL_MODULE, "MODE_MASTER_CPPM_EXTERNAL_MODULE" },
|
||||||
|
{ TRAINER_MODE_MASTER_BATTERY_COMPARTMENT, "MODE_MASTER_BATTERY_COMPARTMENT" },
|
||||||
|
{ TRAINER_MODE_MASTER_BLUETOOTH, "MODE_MASTER_BLUETOOTH" },
|
||||||
|
{ TRAINER_MODE_SLAVE_BLUETOOTH, "MODE_SLAVE_BLUETOOTH" },
|
||||||
|
{ TRAINER_MODE_MULTI, "MODE_MULTI" },
|
||||||
|
{ 0, NULL }
|
||||||
|
};
|
||||||
|
|
||||||
//
|
//
|
||||||
// Structs last
|
// Structs last
|
||||||
@@ -232,7 +266,7 @@ static const struct YamlNode struct_signed_16[] = {
|
|||||||
static const struct YamlNode struct_TrainerMix[] = {
|
static const struct YamlNode struct_TrainerMix[] = {
|
||||||
YAML_IDX,
|
YAML_IDX,
|
||||||
YAML_UNSIGNED( "srcChn", 6 ),
|
YAML_UNSIGNED( "srcChn", 6 ),
|
||||||
YAML_UNSIGNED( "mode", 2 ),
|
YAML_ENUM("mode", 2, enum_TrainerMultiplex),
|
||||||
YAML_SIGNED( "studWeight", 8 ),
|
YAML_SIGNED( "studWeight", 8 ),
|
||||||
YAML_END
|
YAML_END
|
||||||
};
|
};
|
||||||
@@ -321,7 +355,7 @@ static const struct YamlNode struct_RadioData[] = {
|
|||||||
YAML_UNSIGNED( "backlightBright", 8 ),
|
YAML_UNSIGNED( "backlightBright", 8 ),
|
||||||
YAML_UNSIGNED( "globalTimer", 32 ),
|
YAML_UNSIGNED( "globalTimer", 32 ),
|
||||||
YAML_UNSIGNED( "bluetoothBaudrate", 4 ),
|
YAML_UNSIGNED( "bluetoothBaudrate", 4 ),
|
||||||
YAML_UNSIGNED( "bluetoothMode", 4 ),
|
YAML_ENUM("bluetoothMode", 4, enum_BluetoothModes),
|
||||||
YAML_UNSIGNED( "countryCode", 2 ),
|
YAML_UNSIGNED( "countryCode", 2 ),
|
||||||
YAML_SIGNED( "pwrOnSpeed", 3 ),
|
YAML_SIGNED( "pwrOnSpeed", 3 ),
|
||||||
YAML_SIGNED( "pwrOffSpeed", 3 ),
|
YAML_SIGNED( "pwrOffSpeed", 3 ),
|
||||||
@@ -340,7 +374,7 @@ static const struct YamlNode struct_RadioData[] = {
|
|||||||
YAML_SIGNED_CUST( "varioRange", 8, r_vPitch, w_vPitch ),
|
YAML_SIGNED_CUST( "varioRange", 8, r_vPitch, w_vPitch ),
|
||||||
YAML_SIGNED( "varioRepeat", 8 ),
|
YAML_SIGNED( "varioRepeat", 8 ),
|
||||||
YAML_ARRAY("customFn", 88, 64, struct_CustomFunctionData, cfn_is_active),
|
YAML_ARRAY("customFn", 88, 64, struct_CustomFunctionData, cfn_is_active),
|
||||||
YAML_UNSIGNED( "auxSerialMode", 4 ),
|
YAML_ENUM("auxSerialMode", 4, enum_UartModes),
|
||||||
YAML_ARRAY("slidersConfig", 1, 4, struct_sliderConfig, nullptr),
|
YAML_ARRAY("slidersConfig", 1, 4, struct_sliderConfig, nullptr),
|
||||||
YAML_ARRAY("potsConfig", 2, 4, struct_potConfig, nullptr),
|
YAML_ARRAY("potsConfig", 2, 4, struct_potConfig, nullptr),
|
||||||
YAML_UNSIGNED( "backlightColor", 8 ),
|
YAML_UNSIGNED( "backlightColor", 8 ),
|
||||||
@@ -602,7 +636,7 @@ static const struct YamlNode struct_ModuleData[] = {
|
|||||||
YAML_END
|
YAML_END
|
||||||
};
|
};
|
||||||
static const struct YamlNode struct_TrainerModuleData[] = {
|
static const struct YamlNode struct_TrainerModuleData[] = {
|
||||||
YAML_UNSIGNED( "mode", 8 ),
|
YAML_ENUM("mode", 8, enum_TrainerMode),
|
||||||
YAML_UNSIGNED( "channelsStart", 8 ),
|
YAML_UNSIGNED( "channelsStart", 8 ),
|
||||||
YAML_SIGNED( "channelsCount", 8 ),
|
YAML_SIGNED( "channelsCount", 8 ),
|
||||||
YAML_SIGNED( "frameLength", 8 ),
|
YAML_SIGNED( "frameLength", 8 ),
|
||||||
@@ -756,7 +790,7 @@ static const struct YamlNode struct_ModelData[] = {
|
|||||||
YAML_STRUCT("swashR", 64, struct_SwashRingData, NULL),
|
YAML_STRUCT("swashR", 64, struct_SwashRingData, NULL),
|
||||||
YAML_ARRAY("flightModeData", 288, 9, struct_FlightModeData, fmd_is_active),
|
YAML_ARRAY("flightModeData", 288, 9, struct_FlightModeData, fmd_is_active),
|
||||||
YAML_UNSIGNED( "thrTraceSrc", 8 ),
|
YAML_UNSIGNED( "thrTraceSrc", 8 ),
|
||||||
YAML_UNSIGNED( "switchWarningState", 16 ),
|
YAML_UNSIGNED_CUST( "switchWarningState", 16, r_swtchWarn, w_swtchWarn ),
|
||||||
YAML_UNSIGNED( "switchWarningEnable", 8 ),
|
YAML_UNSIGNED( "switchWarningEnable", 8 ),
|
||||||
YAML_ARRAY("gvars", 56, 9, struct_GVarData, NULL),
|
YAML_ARRAY("gvars", 56, 9, struct_GVarData, NULL),
|
||||||
YAML_STRUCT("varioData", 40, struct_VarioData, NULL),
|
YAML_STRUCT("varioData", 40, struct_VarioData, NULL),
|
||||||
@@ -785,7 +819,7 @@ static const struct YamlNode struct_PartialModel[] = {
|
|||||||
YAML_END
|
YAML_END
|
||||||
};
|
};
|
||||||
|
|
||||||
#define MAX_RADIODATA_MODELDATA_PARTIALMODEL_STR_LEN 24
|
#define MAX_RADIODATA_MODELDATA_PARTIALMODEL_STR_LEN 32
|
||||||
|
|
||||||
static const struct YamlNode __RadioData_root_node = YAML_ROOT( struct_RadioData );
|
static const struct YamlNode __RadioData_root_node = YAML_ROOT( struct_RadioData );
|
||||||
|
|
||||||
|
|||||||
@@ -21,6 +21,12 @@ const struct YamlIdStr enum_AntennaModes[] = {
|
|||||||
{ ANTENNA_MODE_LAST, "MODE_LAST" },
|
{ ANTENNA_MODE_LAST, "MODE_LAST" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
|
const struct YamlIdStr enum_TrainerMultiplex[] = {
|
||||||
|
{ TRAINER_OFF, "OFF" },
|
||||||
|
{ TRAINER_ADD, "ADD" },
|
||||||
|
{ TRAINER_REPL, "REPL" },
|
||||||
|
{ 0, NULL }
|
||||||
|
};
|
||||||
const struct YamlIdStr enum_BeeperMode[] = {
|
const struct YamlIdStr enum_BeeperMode[] = {
|
||||||
{ e_mode_quiet, "mode_quiet" },
|
{ e_mode_quiet, "mode_quiet" },
|
||||||
{ e_mode_alarms, "mode_alarms" },
|
{ e_mode_alarms, "mode_alarms" },
|
||||||
@@ -28,6 +34,13 @@ const struct YamlIdStr enum_BeeperMode[] = {
|
|||||||
{ e_mode_all, "mode_all" },
|
{ e_mode_all, "mode_all" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
|
const struct YamlIdStr enum_BluetoothModes[] = {
|
||||||
|
{ BLUETOOTH_OFF, "OFF" },
|
||||||
|
{ BLUETOOTH_TELEMETRY, "TELEMETRY" },
|
||||||
|
{ BLUETOOTH_TRAINER, "TRAINER" },
|
||||||
|
{ BLUETOOTH_MAX, "MAX" },
|
||||||
|
{ 0, NULL }
|
||||||
|
};
|
||||||
const struct YamlIdStr enum_Functions[] = {
|
const struct YamlIdStr enum_Functions[] = {
|
||||||
{ FUNC_OVERRIDE_CHANNEL, "OVERRIDE_CHANNEL" },
|
{ FUNC_OVERRIDE_CHANNEL, "OVERRIDE_CHANNEL" },
|
||||||
{ FUNC_TRAINER, "TRAINER" },
|
{ FUNC_TRAINER, "TRAINER" },
|
||||||
@@ -57,6 +70,16 @@ const struct YamlIdStr enum_Functions[] = {
|
|||||||
{ FUNC_MAX, "MAX" },
|
{ FUNC_MAX, "MAX" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
|
const struct YamlIdStr enum_UartModes[] = {
|
||||||
|
{ UART_MODE_NONE, "MODE_NONE" },
|
||||||
|
{ UART_MODE_TELEMETRY_MIRROR, "MODE_TELEMETRY_MIRROR" },
|
||||||
|
{ UART_MODE_TELEMETRY, "MODE_TELEMETRY" },
|
||||||
|
{ UART_MODE_SBUS_TRAINER, "MODE_SBUS_TRAINER" },
|
||||||
|
{ UART_MODE_LUA, "MODE_LUA" },
|
||||||
|
{ UART_MODE_COUNT, "MODE_COUNT" },
|
||||||
|
{ UART_MODE_MAX, "MODE_MAX" },
|
||||||
|
{ 0, NULL }
|
||||||
|
};
|
||||||
const struct YamlIdStr enum_TimerModes[] = {
|
const struct YamlIdStr enum_TimerModes[] = {
|
||||||
{ TMRMODE_OFF, "OFF" },
|
{ TMRMODE_OFF, "OFF" },
|
||||||
{ TMRMODE_ON, "ON" },
|
{ TMRMODE_ON, "ON" },
|
||||||
@@ -71,7 +94,7 @@ const struct YamlIdStr enum_TimerModes[] = {
|
|||||||
const struct YamlIdStr enum_MixerMultiplex[] = {
|
const struct YamlIdStr enum_MixerMultiplex[] = {
|
||||||
{ MLTPX_ADD, "ADD" },
|
{ MLTPX_ADD, "ADD" },
|
||||||
{ MLTPX_MUL, "MUL" },
|
{ MLTPX_MUL, "MUL" },
|
||||||
{ MLTPX_REP, "REP" },
|
{ MLTPX_REPL, "REPL" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
const struct YamlIdStr enum_MixSources[] = {
|
const struct YamlIdStr enum_MixSources[] = {
|
||||||
@@ -212,6 +235,17 @@ const struct YamlIdStr enum_ModuleType[] = {
|
|||||||
{ MODULE_TYPE_MAX, "TYPE_MAX" },
|
{ MODULE_TYPE_MAX, "TYPE_MAX" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
|
const struct YamlIdStr enum_TrainerMode[] = {
|
||||||
|
{ TRAINER_MODE_MASTER_TRAINER_JACK, "MODE_MASTER_TRAINER_JACK" },
|
||||||
|
{ TRAINER_MODE_SLAVE, "MODE_SLAVE" },
|
||||||
|
{ TRAINER_MODE_MASTER_SBUS_EXTERNAL_MODULE, "MODE_MASTER_SBUS_EXTERNAL_MODULE" },
|
||||||
|
{ TRAINER_MODE_MASTER_CPPM_EXTERNAL_MODULE, "MODE_MASTER_CPPM_EXTERNAL_MODULE" },
|
||||||
|
{ TRAINER_MODE_MASTER_BATTERY_COMPARTMENT, "MODE_MASTER_BATTERY_COMPARTMENT" },
|
||||||
|
{ TRAINER_MODE_MASTER_BLUETOOTH, "MODE_MASTER_BLUETOOTH" },
|
||||||
|
{ TRAINER_MODE_SLAVE_BLUETOOTH, "MODE_SLAVE_BLUETOOTH" },
|
||||||
|
{ TRAINER_MODE_MULTI, "MODE_MULTI" },
|
||||||
|
{ 0, NULL }
|
||||||
|
};
|
||||||
|
|
||||||
//
|
//
|
||||||
// Structs last
|
// Structs last
|
||||||
@@ -232,7 +266,7 @@ static const struct YamlNode struct_signed_16[] = {
|
|||||||
static const struct YamlNode struct_TrainerMix[] = {
|
static const struct YamlNode struct_TrainerMix[] = {
|
||||||
YAML_IDX,
|
YAML_IDX,
|
||||||
YAML_UNSIGNED( "srcChn", 6 ),
|
YAML_UNSIGNED( "srcChn", 6 ),
|
||||||
YAML_UNSIGNED( "mode", 2 ),
|
YAML_ENUM("mode", 2, enum_TrainerMultiplex),
|
||||||
YAML_SIGNED( "studWeight", 8 ),
|
YAML_SIGNED( "studWeight", 8 ),
|
||||||
YAML_END
|
YAML_END
|
||||||
};
|
};
|
||||||
@@ -321,7 +355,7 @@ static const struct YamlNode struct_RadioData[] = {
|
|||||||
YAML_UNSIGNED( "backlightBright", 8 ),
|
YAML_UNSIGNED( "backlightBright", 8 ),
|
||||||
YAML_UNSIGNED( "globalTimer", 32 ),
|
YAML_UNSIGNED( "globalTimer", 32 ),
|
||||||
YAML_UNSIGNED( "bluetoothBaudrate", 4 ),
|
YAML_UNSIGNED( "bluetoothBaudrate", 4 ),
|
||||||
YAML_UNSIGNED( "bluetoothMode", 4 ),
|
YAML_ENUM("bluetoothMode", 4, enum_BluetoothModes),
|
||||||
YAML_UNSIGNED( "countryCode", 2 ),
|
YAML_UNSIGNED( "countryCode", 2 ),
|
||||||
YAML_SIGNED( "pwrOnSpeed", 3 ),
|
YAML_SIGNED( "pwrOnSpeed", 3 ),
|
||||||
YAML_SIGNED( "pwrOffSpeed", 3 ),
|
YAML_SIGNED( "pwrOffSpeed", 3 ),
|
||||||
@@ -340,7 +374,7 @@ static const struct YamlNode struct_RadioData[] = {
|
|||||||
YAML_SIGNED_CUST( "varioRange", 8, r_vPitch, w_vPitch ),
|
YAML_SIGNED_CUST( "varioRange", 8, r_vPitch, w_vPitch ),
|
||||||
YAML_SIGNED( "varioRepeat", 8 ),
|
YAML_SIGNED( "varioRepeat", 8 ),
|
||||||
YAML_ARRAY("customFn", 88, 64, struct_CustomFunctionData, cfn_is_active),
|
YAML_ARRAY("customFn", 88, 64, struct_CustomFunctionData, cfn_is_active),
|
||||||
YAML_UNSIGNED( "auxSerialMode", 4 ),
|
YAML_ENUM("auxSerialMode", 4, enum_UartModes),
|
||||||
YAML_ARRAY("slidersConfig", 1, 4, struct_sliderConfig, nullptr),
|
YAML_ARRAY("slidersConfig", 1, 4, struct_sliderConfig, nullptr),
|
||||||
YAML_ARRAY("potsConfig", 2, 4, struct_potConfig, nullptr),
|
YAML_ARRAY("potsConfig", 2, 4, struct_potConfig, nullptr),
|
||||||
YAML_UNSIGNED( "backlightColor", 8 ),
|
YAML_UNSIGNED( "backlightColor", 8 ),
|
||||||
@@ -602,7 +636,7 @@ static const struct YamlNode struct_ModuleData[] = {
|
|||||||
YAML_END
|
YAML_END
|
||||||
};
|
};
|
||||||
static const struct YamlNode struct_TrainerModuleData[] = {
|
static const struct YamlNode struct_TrainerModuleData[] = {
|
||||||
YAML_UNSIGNED( "mode", 8 ),
|
YAML_ENUM("mode", 8, enum_TrainerMode),
|
||||||
YAML_UNSIGNED( "channelsStart", 8 ),
|
YAML_UNSIGNED( "channelsStart", 8 ),
|
||||||
YAML_SIGNED( "channelsCount", 8 ),
|
YAML_SIGNED( "channelsCount", 8 ),
|
||||||
YAML_SIGNED( "frameLength", 8 ),
|
YAML_SIGNED( "frameLength", 8 ),
|
||||||
@@ -756,7 +790,7 @@ static const struct YamlNode struct_ModelData[] = {
|
|||||||
YAML_STRUCT("swashR", 64, struct_SwashRingData, NULL),
|
YAML_STRUCT("swashR", 64, struct_SwashRingData, NULL),
|
||||||
YAML_ARRAY("flightModeData", 288, 9, struct_FlightModeData, fmd_is_active),
|
YAML_ARRAY("flightModeData", 288, 9, struct_FlightModeData, fmd_is_active),
|
||||||
YAML_UNSIGNED( "thrTraceSrc", 8 ),
|
YAML_UNSIGNED( "thrTraceSrc", 8 ),
|
||||||
YAML_UNSIGNED( "switchWarningState", 16 ),
|
YAML_UNSIGNED_CUST( "switchWarningState", 16, r_swtchWarn, w_swtchWarn ),
|
||||||
YAML_UNSIGNED( "switchWarningEnable", 8 ),
|
YAML_UNSIGNED( "switchWarningEnable", 8 ),
|
||||||
YAML_ARRAY("gvars", 56, 9, struct_GVarData, NULL),
|
YAML_ARRAY("gvars", 56, 9, struct_GVarData, NULL),
|
||||||
YAML_STRUCT("varioData", 40, struct_VarioData, NULL),
|
YAML_STRUCT("varioData", 40, struct_VarioData, NULL),
|
||||||
@@ -785,7 +819,7 @@ static const struct YamlNode struct_PartialModel[] = {
|
|||||||
YAML_END
|
YAML_END
|
||||||
};
|
};
|
||||||
|
|
||||||
#define MAX_RADIODATA_MODELDATA_PARTIALMODEL_STR_LEN 24
|
#define MAX_RADIODATA_MODELDATA_PARTIALMODEL_STR_LEN 32
|
||||||
|
|
||||||
static const struct YamlNode __RadioData_root_node = YAML_ROOT( struct_RadioData );
|
static const struct YamlNode __RadioData_root_node = YAML_ROOT( struct_RadioData );
|
||||||
|
|
||||||
|
|||||||
@@ -21,6 +21,12 @@ const struct YamlIdStr enum_AntennaModes[] = {
|
|||||||
{ ANTENNA_MODE_LAST, "MODE_LAST" },
|
{ ANTENNA_MODE_LAST, "MODE_LAST" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
|
const struct YamlIdStr enum_TrainerMultiplex[] = {
|
||||||
|
{ TRAINER_OFF, "OFF" },
|
||||||
|
{ TRAINER_ADD, "ADD" },
|
||||||
|
{ TRAINER_REPL, "REPL" },
|
||||||
|
{ 0, NULL }
|
||||||
|
};
|
||||||
const struct YamlIdStr enum_BeeperMode[] = {
|
const struct YamlIdStr enum_BeeperMode[] = {
|
||||||
{ e_mode_quiet, "mode_quiet" },
|
{ e_mode_quiet, "mode_quiet" },
|
||||||
{ e_mode_alarms, "mode_alarms" },
|
{ e_mode_alarms, "mode_alarms" },
|
||||||
@@ -28,6 +34,13 @@ const struct YamlIdStr enum_BeeperMode[] = {
|
|||||||
{ e_mode_all, "mode_all" },
|
{ e_mode_all, "mode_all" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
|
const struct YamlIdStr enum_BluetoothModes[] = {
|
||||||
|
{ BLUETOOTH_OFF, "OFF" },
|
||||||
|
{ BLUETOOTH_TELEMETRY, "TELEMETRY" },
|
||||||
|
{ BLUETOOTH_TRAINER, "TRAINER" },
|
||||||
|
{ BLUETOOTH_MAX, "MAX" },
|
||||||
|
{ 0, NULL }
|
||||||
|
};
|
||||||
const struct YamlIdStr enum_Functions[] = {
|
const struct YamlIdStr enum_Functions[] = {
|
||||||
{ FUNC_OVERRIDE_CHANNEL, "OVERRIDE_CHANNEL" },
|
{ FUNC_OVERRIDE_CHANNEL, "OVERRIDE_CHANNEL" },
|
||||||
{ FUNC_TRAINER, "TRAINER" },
|
{ FUNC_TRAINER, "TRAINER" },
|
||||||
@@ -57,6 +70,16 @@ const struct YamlIdStr enum_Functions[] = {
|
|||||||
{ FUNC_MAX, "MAX" },
|
{ FUNC_MAX, "MAX" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
|
const struct YamlIdStr enum_UartModes[] = {
|
||||||
|
{ UART_MODE_NONE, "MODE_NONE" },
|
||||||
|
{ UART_MODE_TELEMETRY_MIRROR, "MODE_TELEMETRY_MIRROR" },
|
||||||
|
{ UART_MODE_TELEMETRY, "MODE_TELEMETRY" },
|
||||||
|
{ UART_MODE_SBUS_TRAINER, "MODE_SBUS_TRAINER" },
|
||||||
|
{ UART_MODE_LUA, "MODE_LUA" },
|
||||||
|
{ UART_MODE_COUNT, "MODE_COUNT" },
|
||||||
|
{ UART_MODE_MAX, "MODE_MAX" },
|
||||||
|
{ 0, NULL }
|
||||||
|
};
|
||||||
const struct YamlIdStr enum_TimerModes[] = {
|
const struct YamlIdStr enum_TimerModes[] = {
|
||||||
{ TMRMODE_OFF, "OFF" },
|
{ TMRMODE_OFF, "OFF" },
|
||||||
{ TMRMODE_ON, "ON" },
|
{ TMRMODE_ON, "ON" },
|
||||||
@@ -71,7 +94,7 @@ const struct YamlIdStr enum_TimerModes[] = {
|
|||||||
const struct YamlIdStr enum_MixerMultiplex[] = {
|
const struct YamlIdStr enum_MixerMultiplex[] = {
|
||||||
{ MLTPX_ADD, "ADD" },
|
{ MLTPX_ADD, "ADD" },
|
||||||
{ MLTPX_MUL, "MUL" },
|
{ MLTPX_MUL, "MUL" },
|
||||||
{ MLTPX_REP, "REP" },
|
{ MLTPX_REPL, "REPL" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
const struct YamlIdStr enum_MixSources[] = {
|
const struct YamlIdStr enum_MixSources[] = {
|
||||||
@@ -212,6 +235,17 @@ const struct YamlIdStr enum_ModuleType[] = {
|
|||||||
{ MODULE_TYPE_MAX, "TYPE_MAX" },
|
{ MODULE_TYPE_MAX, "TYPE_MAX" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
|
const struct YamlIdStr enum_TrainerMode[] = {
|
||||||
|
{ TRAINER_MODE_MASTER_TRAINER_JACK, "MODE_MASTER_TRAINER_JACK" },
|
||||||
|
{ TRAINER_MODE_SLAVE, "MODE_SLAVE" },
|
||||||
|
{ TRAINER_MODE_MASTER_SBUS_EXTERNAL_MODULE, "MODE_MASTER_SBUS_EXTERNAL_MODULE" },
|
||||||
|
{ TRAINER_MODE_MASTER_CPPM_EXTERNAL_MODULE, "MODE_MASTER_CPPM_EXTERNAL_MODULE" },
|
||||||
|
{ TRAINER_MODE_MASTER_BATTERY_COMPARTMENT, "MODE_MASTER_BATTERY_COMPARTMENT" },
|
||||||
|
{ TRAINER_MODE_MASTER_BLUETOOTH, "MODE_MASTER_BLUETOOTH" },
|
||||||
|
{ TRAINER_MODE_SLAVE_BLUETOOTH, "MODE_SLAVE_BLUETOOTH" },
|
||||||
|
{ TRAINER_MODE_MULTI, "MODE_MULTI" },
|
||||||
|
{ 0, NULL }
|
||||||
|
};
|
||||||
|
|
||||||
//
|
//
|
||||||
// Structs last
|
// Structs last
|
||||||
@@ -232,7 +266,7 @@ static const struct YamlNode struct_signed_16[] = {
|
|||||||
static const struct YamlNode struct_TrainerMix[] = {
|
static const struct YamlNode struct_TrainerMix[] = {
|
||||||
YAML_IDX,
|
YAML_IDX,
|
||||||
YAML_UNSIGNED( "srcChn", 6 ),
|
YAML_UNSIGNED( "srcChn", 6 ),
|
||||||
YAML_UNSIGNED( "mode", 2 ),
|
YAML_ENUM("mode", 2, enum_TrainerMultiplex),
|
||||||
YAML_SIGNED( "studWeight", 8 ),
|
YAML_SIGNED( "studWeight", 8 ),
|
||||||
YAML_END
|
YAML_END
|
||||||
};
|
};
|
||||||
@@ -321,7 +355,7 @@ static const struct YamlNode struct_RadioData[] = {
|
|||||||
YAML_UNSIGNED( "backlightBright", 8 ),
|
YAML_UNSIGNED( "backlightBright", 8 ),
|
||||||
YAML_UNSIGNED( "globalTimer", 32 ),
|
YAML_UNSIGNED( "globalTimer", 32 ),
|
||||||
YAML_UNSIGNED( "bluetoothBaudrate", 4 ),
|
YAML_UNSIGNED( "bluetoothBaudrate", 4 ),
|
||||||
YAML_UNSIGNED( "bluetoothMode", 4 ),
|
YAML_ENUM("bluetoothMode", 4, enum_BluetoothModes),
|
||||||
YAML_UNSIGNED( "countryCode", 2 ),
|
YAML_UNSIGNED( "countryCode", 2 ),
|
||||||
YAML_SIGNED( "pwrOnSpeed", 3 ),
|
YAML_SIGNED( "pwrOnSpeed", 3 ),
|
||||||
YAML_SIGNED( "pwrOffSpeed", 3 ),
|
YAML_SIGNED( "pwrOffSpeed", 3 ),
|
||||||
@@ -340,7 +374,7 @@ static const struct YamlNode struct_RadioData[] = {
|
|||||||
YAML_SIGNED_CUST( "varioRange", 8, r_vPitch, w_vPitch ),
|
YAML_SIGNED_CUST( "varioRange", 8, r_vPitch, w_vPitch ),
|
||||||
YAML_SIGNED( "varioRepeat", 8 ),
|
YAML_SIGNED( "varioRepeat", 8 ),
|
||||||
YAML_ARRAY("customFn", 88, 64, struct_CustomFunctionData, cfn_is_active),
|
YAML_ARRAY("customFn", 88, 64, struct_CustomFunctionData, cfn_is_active),
|
||||||
YAML_UNSIGNED( "auxSerialMode", 4 ),
|
YAML_ENUM("auxSerialMode", 4, enum_UartModes),
|
||||||
YAML_ARRAY("slidersConfig", 1, 4, struct_sliderConfig, nullptr),
|
YAML_ARRAY("slidersConfig", 1, 4, struct_sliderConfig, nullptr),
|
||||||
YAML_ARRAY("potsConfig", 2, 4, struct_potConfig, nullptr),
|
YAML_ARRAY("potsConfig", 2, 4, struct_potConfig, nullptr),
|
||||||
YAML_UNSIGNED( "backlightColor", 8 ),
|
YAML_UNSIGNED( "backlightColor", 8 ),
|
||||||
@@ -602,7 +636,7 @@ static const struct YamlNode struct_ModuleData[] = {
|
|||||||
YAML_END
|
YAML_END
|
||||||
};
|
};
|
||||||
static const struct YamlNode struct_TrainerModuleData[] = {
|
static const struct YamlNode struct_TrainerModuleData[] = {
|
||||||
YAML_UNSIGNED( "mode", 8 ),
|
YAML_ENUM("mode", 8, enum_TrainerMode),
|
||||||
YAML_UNSIGNED( "channelsStart", 8 ),
|
YAML_UNSIGNED( "channelsStart", 8 ),
|
||||||
YAML_SIGNED( "channelsCount", 8 ),
|
YAML_SIGNED( "channelsCount", 8 ),
|
||||||
YAML_SIGNED( "frameLength", 8 ),
|
YAML_SIGNED( "frameLength", 8 ),
|
||||||
@@ -756,7 +790,7 @@ static const struct YamlNode struct_ModelData[] = {
|
|||||||
YAML_STRUCT("swashR", 64, struct_SwashRingData, NULL),
|
YAML_STRUCT("swashR", 64, struct_SwashRingData, NULL),
|
||||||
YAML_ARRAY("flightModeData", 288, 9, struct_FlightModeData, fmd_is_active),
|
YAML_ARRAY("flightModeData", 288, 9, struct_FlightModeData, fmd_is_active),
|
||||||
YAML_UNSIGNED( "thrTraceSrc", 8 ),
|
YAML_UNSIGNED( "thrTraceSrc", 8 ),
|
||||||
YAML_UNSIGNED( "switchWarningState", 16 ),
|
YAML_UNSIGNED_CUST( "switchWarningState", 16, r_swtchWarn, w_swtchWarn ),
|
||||||
YAML_UNSIGNED( "switchWarningEnable", 8 ),
|
YAML_UNSIGNED( "switchWarningEnable", 8 ),
|
||||||
YAML_ARRAY("gvars", 56, 9, struct_GVarData, NULL),
|
YAML_ARRAY("gvars", 56, 9, struct_GVarData, NULL),
|
||||||
YAML_STRUCT("varioData", 40, struct_VarioData, NULL),
|
YAML_STRUCT("varioData", 40, struct_VarioData, NULL),
|
||||||
@@ -785,7 +819,7 @@ static const struct YamlNode struct_PartialModel[] = {
|
|||||||
YAML_END
|
YAML_END
|
||||||
};
|
};
|
||||||
|
|
||||||
#define MAX_RADIODATA_MODELDATA_PARTIALMODEL_STR_LEN 24
|
#define MAX_RADIODATA_MODELDATA_PARTIALMODEL_STR_LEN 32
|
||||||
|
|
||||||
static const struct YamlNode __RadioData_root_node = YAML_ROOT( struct_RadioData );
|
static const struct YamlNode __RadioData_root_node = YAML_ROOT( struct_RadioData );
|
||||||
|
|
||||||
|
|||||||
@@ -21,6 +21,12 @@ const struct YamlIdStr enum_AntennaModes[] = {
|
|||||||
{ ANTENNA_MODE_LAST, "MODE_LAST" },
|
{ ANTENNA_MODE_LAST, "MODE_LAST" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
|
const struct YamlIdStr enum_TrainerMultiplex[] = {
|
||||||
|
{ TRAINER_OFF, "OFF" },
|
||||||
|
{ TRAINER_ADD, "ADD" },
|
||||||
|
{ TRAINER_REPL, "REPL" },
|
||||||
|
{ 0, NULL }
|
||||||
|
};
|
||||||
const struct YamlIdStr enum_BeeperMode[] = {
|
const struct YamlIdStr enum_BeeperMode[] = {
|
||||||
{ e_mode_quiet, "mode_quiet" },
|
{ e_mode_quiet, "mode_quiet" },
|
||||||
{ e_mode_alarms, "mode_alarms" },
|
{ e_mode_alarms, "mode_alarms" },
|
||||||
@@ -28,6 +34,13 @@ const struct YamlIdStr enum_BeeperMode[] = {
|
|||||||
{ e_mode_all, "mode_all" },
|
{ e_mode_all, "mode_all" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
|
const struct YamlIdStr enum_BluetoothModes[] = {
|
||||||
|
{ BLUETOOTH_OFF, "OFF" },
|
||||||
|
{ BLUETOOTH_TELEMETRY, "TELEMETRY" },
|
||||||
|
{ BLUETOOTH_TRAINER, "TRAINER" },
|
||||||
|
{ BLUETOOTH_MAX, "MAX" },
|
||||||
|
{ 0, NULL }
|
||||||
|
};
|
||||||
const struct YamlIdStr enum_Functions[] = {
|
const struct YamlIdStr enum_Functions[] = {
|
||||||
{ FUNC_OVERRIDE_CHANNEL, "OVERRIDE_CHANNEL" },
|
{ FUNC_OVERRIDE_CHANNEL, "OVERRIDE_CHANNEL" },
|
||||||
{ FUNC_TRAINER, "TRAINER" },
|
{ FUNC_TRAINER, "TRAINER" },
|
||||||
@@ -57,6 +70,16 @@ const struct YamlIdStr enum_Functions[] = {
|
|||||||
{ FUNC_MAX, "MAX" },
|
{ FUNC_MAX, "MAX" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
|
const struct YamlIdStr enum_UartModes[] = {
|
||||||
|
{ UART_MODE_NONE, "MODE_NONE" },
|
||||||
|
{ UART_MODE_TELEMETRY_MIRROR, "MODE_TELEMETRY_MIRROR" },
|
||||||
|
{ UART_MODE_TELEMETRY, "MODE_TELEMETRY" },
|
||||||
|
{ UART_MODE_SBUS_TRAINER, "MODE_SBUS_TRAINER" },
|
||||||
|
{ UART_MODE_LUA, "MODE_LUA" },
|
||||||
|
{ UART_MODE_COUNT, "MODE_COUNT" },
|
||||||
|
{ UART_MODE_MAX, "MODE_MAX" },
|
||||||
|
{ 0, NULL }
|
||||||
|
};
|
||||||
const struct YamlIdStr enum_ZoneOptionValueEnum[] = {
|
const struct YamlIdStr enum_ZoneOptionValueEnum[] = {
|
||||||
{ ZOV_Unsigned, "Unsigned" },
|
{ ZOV_Unsigned, "Unsigned" },
|
||||||
{ ZOV_Signed, "Signed" },
|
{ ZOV_Signed, "Signed" },
|
||||||
@@ -78,7 +101,7 @@ const struct YamlIdStr enum_TimerModes[] = {
|
|||||||
const struct YamlIdStr enum_MixerMultiplex[] = {
|
const struct YamlIdStr enum_MixerMultiplex[] = {
|
||||||
{ MLTPX_ADD, "ADD" },
|
{ MLTPX_ADD, "ADD" },
|
||||||
{ MLTPX_MUL, "MUL" },
|
{ MLTPX_MUL, "MUL" },
|
||||||
{ MLTPX_REP, "REP" },
|
{ MLTPX_REPL, "REPL" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
const struct YamlIdStr enum_MixSources[] = {
|
const struct YamlIdStr enum_MixSources[] = {
|
||||||
@@ -240,6 +263,15 @@ const struct YamlIdStr enum_ModuleType[] = {
|
|||||||
{ MODULE_TYPE_MAX, "TYPE_MAX" },
|
{ MODULE_TYPE_MAX, "TYPE_MAX" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
|
const struct YamlIdStr enum_TrainerMode[] = {
|
||||||
|
{ TRAINER_MODE_MASTER_TRAINER_JACK, "MODE_MASTER_TRAINER_JACK" },
|
||||||
|
{ TRAINER_MODE_SLAVE, "MODE_SLAVE" },
|
||||||
|
{ TRAINER_MODE_MASTER_BATTERY_COMPARTMENT, "MODE_MASTER_BATTERY_COMPARTMENT" },
|
||||||
|
{ TRAINER_MODE_MASTER_BLUETOOTH, "MODE_MASTER_BLUETOOTH" },
|
||||||
|
{ TRAINER_MODE_SLAVE_BLUETOOTH, "MODE_SLAVE_BLUETOOTH" },
|
||||||
|
{ TRAINER_MODE_MULTI, "MODE_MULTI" },
|
||||||
|
{ 0, NULL }
|
||||||
|
};
|
||||||
|
|
||||||
//
|
//
|
||||||
// Structs last
|
// Structs last
|
||||||
@@ -260,7 +292,7 @@ static const struct YamlNode struct_signed_16[] = {
|
|||||||
static const struct YamlNode struct_TrainerMix[] = {
|
static const struct YamlNode struct_TrainerMix[] = {
|
||||||
YAML_IDX,
|
YAML_IDX,
|
||||||
YAML_UNSIGNED( "srcChn", 6 ),
|
YAML_UNSIGNED( "srcChn", 6 ),
|
||||||
YAML_UNSIGNED( "mode", 2 ),
|
YAML_ENUM("mode", 2, enum_TrainerMultiplex),
|
||||||
YAML_SIGNED( "studWeight", 8 ),
|
YAML_SIGNED( "studWeight", 8 ),
|
||||||
YAML_END
|
YAML_END
|
||||||
};
|
};
|
||||||
@@ -364,7 +396,7 @@ static const struct YamlNode struct_RadioData[] = {
|
|||||||
YAML_UNSIGNED( "backlightBright", 8 ),
|
YAML_UNSIGNED( "backlightBright", 8 ),
|
||||||
YAML_UNSIGNED( "globalTimer", 32 ),
|
YAML_UNSIGNED( "globalTimer", 32 ),
|
||||||
YAML_UNSIGNED( "bluetoothBaudrate", 4 ),
|
YAML_UNSIGNED( "bluetoothBaudrate", 4 ),
|
||||||
YAML_UNSIGNED( "bluetoothMode", 4 ),
|
YAML_ENUM("bluetoothMode", 4, enum_BluetoothModes),
|
||||||
YAML_UNSIGNED( "countryCode", 2 ),
|
YAML_UNSIGNED( "countryCode", 2 ),
|
||||||
YAML_SIGNED( "pwrOnSpeed", 3 ),
|
YAML_SIGNED( "pwrOnSpeed", 3 ),
|
||||||
YAML_SIGNED( "pwrOffSpeed", 3 ),
|
YAML_SIGNED( "pwrOffSpeed", 3 ),
|
||||||
@@ -383,8 +415,8 @@ static const struct YamlNode struct_RadioData[] = {
|
|||||||
YAML_SIGNED_CUST( "varioRange", 8, r_vPitch, w_vPitch ),
|
YAML_SIGNED_CUST( "varioRange", 8, r_vPitch, w_vPitch ),
|
||||||
YAML_SIGNED( "varioRepeat", 8 ),
|
YAML_SIGNED( "varioRepeat", 8 ),
|
||||||
YAML_ARRAY("customFn", 72, 64, struct_CustomFunctionData, cfn_is_active),
|
YAML_ARRAY("customFn", 72, 64, struct_CustomFunctionData, cfn_is_active),
|
||||||
YAML_UNSIGNED( "auxSerialMode", 4 ),
|
YAML_ENUM("auxSerialMode", 4, enum_UartModes),
|
||||||
YAML_UNSIGNED( "aux2SerialMode", 4 ),
|
YAML_ENUM("aux2SerialMode", 4, enum_UartModes),
|
||||||
YAML_ARRAY("sticksConfig", 0, 4, struct_sticksConfig, stick_name_valid),
|
YAML_ARRAY("sticksConfig", 0, 4, struct_sticksConfig, stick_name_valid),
|
||||||
YAML_ARRAY("switchConfig", 2, 16, struct_switchConfig, nullptr),
|
YAML_ARRAY("switchConfig", 2, 16, struct_switchConfig, nullptr),
|
||||||
YAML_ARRAY("potsConfig", 2, 8, struct_potConfig, nullptr),
|
YAML_ARRAY("potsConfig", 2, 8, struct_potConfig, nullptr),
|
||||||
@@ -649,7 +681,7 @@ static const struct YamlNode struct_ModuleData[] = {
|
|||||||
YAML_END
|
YAML_END
|
||||||
};
|
};
|
||||||
static const struct YamlNode struct_TrainerModuleData[] = {
|
static const struct YamlNode struct_TrainerModuleData[] = {
|
||||||
YAML_UNSIGNED( "mode", 8 ),
|
YAML_ENUM("mode", 8, enum_TrainerMode),
|
||||||
YAML_UNSIGNED( "channelsStart", 8 ),
|
YAML_UNSIGNED( "channelsStart", 8 ),
|
||||||
YAML_SIGNED( "channelsCount", 8 ),
|
YAML_SIGNED( "channelsCount", 8 ),
|
||||||
YAML_SIGNED( "frameLength", 8 ),
|
YAML_SIGNED( "frameLength", 8 ),
|
||||||
@@ -829,7 +861,7 @@ static const struct YamlNode struct_PartialModel[] = {
|
|||||||
YAML_END
|
YAML_END
|
||||||
};
|
};
|
||||||
|
|
||||||
#define MAX_RADIODATA_MODELDATA_PARTIALMODEL_STR_LEN 24
|
#define MAX_RADIODATA_MODELDATA_PARTIALMODEL_STR_LEN 31
|
||||||
|
|
||||||
static const struct YamlNode __RadioData_root_node = YAML_ROOT( struct_RadioData );
|
static const struct YamlNode __RadioData_root_node = YAML_ROOT( struct_RadioData );
|
||||||
|
|
||||||
|
|||||||
@@ -21,6 +21,12 @@ const struct YamlIdStr enum_AntennaModes[] = {
|
|||||||
{ ANTENNA_MODE_LAST, "MODE_LAST" },
|
{ ANTENNA_MODE_LAST, "MODE_LAST" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
|
const struct YamlIdStr enum_TrainerMultiplex[] = {
|
||||||
|
{ TRAINER_OFF, "OFF" },
|
||||||
|
{ TRAINER_ADD, "ADD" },
|
||||||
|
{ TRAINER_REPL, "REPL" },
|
||||||
|
{ 0, NULL }
|
||||||
|
};
|
||||||
const struct YamlIdStr enum_BeeperMode[] = {
|
const struct YamlIdStr enum_BeeperMode[] = {
|
||||||
{ e_mode_quiet, "mode_quiet" },
|
{ e_mode_quiet, "mode_quiet" },
|
||||||
{ e_mode_alarms, "mode_alarms" },
|
{ e_mode_alarms, "mode_alarms" },
|
||||||
@@ -28,6 +34,13 @@ const struct YamlIdStr enum_BeeperMode[] = {
|
|||||||
{ e_mode_all, "mode_all" },
|
{ e_mode_all, "mode_all" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
|
const struct YamlIdStr enum_BluetoothModes[] = {
|
||||||
|
{ BLUETOOTH_OFF, "OFF" },
|
||||||
|
{ BLUETOOTH_TELEMETRY, "TELEMETRY" },
|
||||||
|
{ BLUETOOTH_TRAINER, "TRAINER" },
|
||||||
|
{ BLUETOOTH_MAX, "MAX" },
|
||||||
|
{ 0, NULL }
|
||||||
|
};
|
||||||
const struct YamlIdStr enum_Functions[] = {
|
const struct YamlIdStr enum_Functions[] = {
|
||||||
{ FUNC_OVERRIDE_CHANNEL, "OVERRIDE_CHANNEL" },
|
{ FUNC_OVERRIDE_CHANNEL, "OVERRIDE_CHANNEL" },
|
||||||
{ FUNC_TRAINER, "TRAINER" },
|
{ FUNC_TRAINER, "TRAINER" },
|
||||||
@@ -57,6 +70,16 @@ const struct YamlIdStr enum_Functions[] = {
|
|||||||
{ FUNC_MAX, "MAX" },
|
{ FUNC_MAX, "MAX" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
|
const struct YamlIdStr enum_UartModes[] = {
|
||||||
|
{ UART_MODE_NONE, "MODE_NONE" },
|
||||||
|
{ UART_MODE_TELEMETRY_MIRROR, "MODE_TELEMETRY_MIRROR" },
|
||||||
|
{ UART_MODE_TELEMETRY, "MODE_TELEMETRY" },
|
||||||
|
{ UART_MODE_SBUS_TRAINER, "MODE_SBUS_TRAINER" },
|
||||||
|
{ UART_MODE_LUA, "MODE_LUA" },
|
||||||
|
{ UART_MODE_COUNT, "MODE_COUNT" },
|
||||||
|
{ UART_MODE_MAX, "MODE_MAX" },
|
||||||
|
{ 0, NULL }
|
||||||
|
};
|
||||||
const struct YamlIdStr enum_ZoneOptionValueEnum[] = {
|
const struct YamlIdStr enum_ZoneOptionValueEnum[] = {
|
||||||
{ ZOV_Unsigned, "Unsigned" },
|
{ ZOV_Unsigned, "Unsigned" },
|
||||||
{ ZOV_Signed, "Signed" },
|
{ ZOV_Signed, "Signed" },
|
||||||
@@ -78,7 +101,7 @@ const struct YamlIdStr enum_TimerModes[] = {
|
|||||||
const struct YamlIdStr enum_MixerMultiplex[] = {
|
const struct YamlIdStr enum_MixerMultiplex[] = {
|
||||||
{ MLTPX_ADD, "ADD" },
|
{ MLTPX_ADD, "ADD" },
|
||||||
{ MLTPX_MUL, "MUL" },
|
{ MLTPX_MUL, "MUL" },
|
||||||
{ MLTPX_REP, "REP" },
|
{ MLTPX_REPL, "REPL" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
const struct YamlIdStr enum_MixSources[] = {
|
const struct YamlIdStr enum_MixSources[] = {
|
||||||
@@ -240,6 +263,14 @@ const struct YamlIdStr enum_ModuleType[] = {
|
|||||||
{ MODULE_TYPE_MAX, "TYPE_MAX" },
|
{ MODULE_TYPE_MAX, "TYPE_MAX" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
|
const struct YamlIdStr enum_TrainerMode[] = {
|
||||||
|
{ TRAINER_MODE_MASTER_TRAINER_JACK, "MODE_MASTER_TRAINER_JACK" },
|
||||||
|
{ TRAINER_MODE_SLAVE, "MODE_SLAVE" },
|
||||||
|
{ TRAINER_MODE_MASTER_BLUETOOTH, "MODE_MASTER_BLUETOOTH" },
|
||||||
|
{ TRAINER_MODE_SLAVE_BLUETOOTH, "MODE_SLAVE_BLUETOOTH" },
|
||||||
|
{ TRAINER_MODE_MULTI, "MODE_MULTI" },
|
||||||
|
{ 0, NULL }
|
||||||
|
};
|
||||||
|
|
||||||
//
|
//
|
||||||
// Structs last
|
// Structs last
|
||||||
@@ -260,7 +291,7 @@ static const struct YamlNode struct_signed_16[] = {
|
|||||||
static const struct YamlNode struct_TrainerMix[] = {
|
static const struct YamlNode struct_TrainerMix[] = {
|
||||||
YAML_IDX,
|
YAML_IDX,
|
||||||
YAML_UNSIGNED( "srcChn", 6 ),
|
YAML_UNSIGNED( "srcChn", 6 ),
|
||||||
YAML_UNSIGNED( "mode", 2 ),
|
YAML_ENUM("mode", 2, enum_TrainerMultiplex),
|
||||||
YAML_SIGNED( "studWeight", 8 ),
|
YAML_SIGNED( "studWeight", 8 ),
|
||||||
YAML_END
|
YAML_END
|
||||||
};
|
};
|
||||||
@@ -364,7 +395,7 @@ static const struct YamlNode struct_RadioData[] = {
|
|||||||
YAML_UNSIGNED( "backlightBright", 8 ),
|
YAML_UNSIGNED( "backlightBright", 8 ),
|
||||||
YAML_UNSIGNED( "globalTimer", 32 ),
|
YAML_UNSIGNED( "globalTimer", 32 ),
|
||||||
YAML_UNSIGNED( "bluetoothBaudrate", 4 ),
|
YAML_UNSIGNED( "bluetoothBaudrate", 4 ),
|
||||||
YAML_UNSIGNED( "bluetoothMode", 4 ),
|
YAML_ENUM("bluetoothMode", 4, enum_BluetoothModes),
|
||||||
YAML_UNSIGNED( "countryCode", 2 ),
|
YAML_UNSIGNED( "countryCode", 2 ),
|
||||||
YAML_SIGNED( "pwrOnSpeed", 3 ),
|
YAML_SIGNED( "pwrOnSpeed", 3 ),
|
||||||
YAML_SIGNED( "pwrOffSpeed", 3 ),
|
YAML_SIGNED( "pwrOffSpeed", 3 ),
|
||||||
@@ -383,8 +414,8 @@ static const struct YamlNode struct_RadioData[] = {
|
|||||||
YAML_SIGNED_CUST( "varioRange", 8, r_vPitch, w_vPitch ),
|
YAML_SIGNED_CUST( "varioRange", 8, r_vPitch, w_vPitch ),
|
||||||
YAML_SIGNED( "varioRepeat", 8 ),
|
YAML_SIGNED( "varioRepeat", 8 ),
|
||||||
YAML_ARRAY("customFn", 72, 64, struct_CustomFunctionData, cfn_is_active),
|
YAML_ARRAY("customFn", 72, 64, struct_CustomFunctionData, cfn_is_active),
|
||||||
YAML_UNSIGNED( "auxSerialMode", 4 ),
|
YAML_ENUM("auxSerialMode", 4, enum_UartModes),
|
||||||
YAML_UNSIGNED( "aux2SerialMode", 4 ),
|
YAML_ENUM("aux2SerialMode", 4, enum_UartModes),
|
||||||
YAML_ARRAY("sticksConfig", 0, 4, struct_sticksConfig, stick_name_valid),
|
YAML_ARRAY("sticksConfig", 0, 4, struct_sticksConfig, stick_name_valid),
|
||||||
YAML_ARRAY("switchConfig", 2, 16, struct_switchConfig, nullptr),
|
YAML_ARRAY("switchConfig", 2, 16, struct_switchConfig, nullptr),
|
||||||
YAML_ARRAY("potsConfig", 2, 8, struct_potConfig, nullptr),
|
YAML_ARRAY("potsConfig", 2, 8, struct_potConfig, nullptr),
|
||||||
@@ -649,7 +680,7 @@ static const struct YamlNode struct_ModuleData[] = {
|
|||||||
YAML_END
|
YAML_END
|
||||||
};
|
};
|
||||||
static const struct YamlNode struct_TrainerModuleData[] = {
|
static const struct YamlNode struct_TrainerModuleData[] = {
|
||||||
YAML_UNSIGNED( "mode", 8 ),
|
YAML_ENUM("mode", 8, enum_TrainerMode),
|
||||||
YAML_UNSIGNED( "channelsStart", 8 ),
|
YAML_UNSIGNED( "channelsStart", 8 ),
|
||||||
YAML_SIGNED( "channelsCount", 8 ),
|
YAML_SIGNED( "channelsCount", 8 ),
|
||||||
YAML_SIGNED( "frameLength", 8 ),
|
YAML_SIGNED( "frameLength", 8 ),
|
||||||
|
|||||||
@@ -21,6 +21,12 @@ const struct YamlIdStr enum_AntennaModes[] = {
|
|||||||
{ ANTENNA_MODE_LAST, "MODE_LAST" },
|
{ ANTENNA_MODE_LAST, "MODE_LAST" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
|
const struct YamlIdStr enum_TrainerMultiplex[] = {
|
||||||
|
{ TRAINER_OFF, "OFF" },
|
||||||
|
{ TRAINER_ADD, "ADD" },
|
||||||
|
{ TRAINER_REPL, "REPL" },
|
||||||
|
{ 0, NULL }
|
||||||
|
};
|
||||||
const struct YamlIdStr enum_BeeperMode[] = {
|
const struct YamlIdStr enum_BeeperMode[] = {
|
||||||
{ e_mode_quiet, "mode_quiet" },
|
{ e_mode_quiet, "mode_quiet" },
|
||||||
{ e_mode_alarms, "mode_alarms" },
|
{ e_mode_alarms, "mode_alarms" },
|
||||||
@@ -28,6 +34,13 @@ const struct YamlIdStr enum_BeeperMode[] = {
|
|||||||
{ e_mode_all, "mode_all" },
|
{ e_mode_all, "mode_all" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
|
const struct YamlIdStr enum_BluetoothModes[] = {
|
||||||
|
{ BLUETOOTH_OFF, "OFF" },
|
||||||
|
{ BLUETOOTH_TELEMETRY, "TELEMETRY" },
|
||||||
|
{ BLUETOOTH_TRAINER, "TRAINER" },
|
||||||
|
{ BLUETOOTH_MAX, "MAX" },
|
||||||
|
{ 0, NULL }
|
||||||
|
};
|
||||||
const struct YamlIdStr enum_Functions[] = {
|
const struct YamlIdStr enum_Functions[] = {
|
||||||
{ FUNC_OVERRIDE_CHANNEL, "OVERRIDE_CHANNEL" },
|
{ FUNC_OVERRIDE_CHANNEL, "OVERRIDE_CHANNEL" },
|
||||||
{ FUNC_TRAINER, "TRAINER" },
|
{ FUNC_TRAINER, "TRAINER" },
|
||||||
@@ -57,6 +70,16 @@ const struct YamlIdStr enum_Functions[] = {
|
|||||||
{ FUNC_MAX, "MAX" },
|
{ FUNC_MAX, "MAX" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
|
const struct YamlIdStr enum_UartModes[] = {
|
||||||
|
{ UART_MODE_NONE, "MODE_NONE" },
|
||||||
|
{ UART_MODE_TELEMETRY_MIRROR, "MODE_TELEMETRY_MIRROR" },
|
||||||
|
{ UART_MODE_TELEMETRY, "MODE_TELEMETRY" },
|
||||||
|
{ UART_MODE_SBUS_TRAINER, "MODE_SBUS_TRAINER" },
|
||||||
|
{ UART_MODE_LUA, "MODE_LUA" },
|
||||||
|
{ UART_MODE_COUNT, "MODE_COUNT" },
|
||||||
|
{ UART_MODE_MAX, "MODE_MAX" },
|
||||||
|
{ 0, NULL }
|
||||||
|
};
|
||||||
const struct YamlIdStr enum_TimerModes[] = {
|
const struct YamlIdStr enum_TimerModes[] = {
|
||||||
{ TMRMODE_OFF, "OFF" },
|
{ TMRMODE_OFF, "OFF" },
|
||||||
{ TMRMODE_ON, "ON" },
|
{ TMRMODE_ON, "ON" },
|
||||||
@@ -71,7 +94,7 @@ const struct YamlIdStr enum_TimerModes[] = {
|
|||||||
const struct YamlIdStr enum_MixerMultiplex[] = {
|
const struct YamlIdStr enum_MixerMultiplex[] = {
|
||||||
{ MLTPX_ADD, "ADD" },
|
{ MLTPX_ADD, "ADD" },
|
||||||
{ MLTPX_MUL, "MUL" },
|
{ MLTPX_MUL, "MUL" },
|
||||||
{ MLTPX_REP, "REP" },
|
{ MLTPX_REPL, "REPL" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
const struct YamlIdStr enum_MixSources[] = {
|
const struct YamlIdStr enum_MixSources[] = {
|
||||||
@@ -212,6 +235,17 @@ const struct YamlIdStr enum_ModuleType[] = {
|
|||||||
{ MODULE_TYPE_MAX, "TYPE_MAX" },
|
{ MODULE_TYPE_MAX, "TYPE_MAX" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
|
const struct YamlIdStr enum_TrainerMode[] = {
|
||||||
|
{ TRAINER_MODE_MASTER_TRAINER_JACK, "MODE_MASTER_TRAINER_JACK" },
|
||||||
|
{ TRAINER_MODE_SLAVE, "MODE_SLAVE" },
|
||||||
|
{ TRAINER_MODE_MASTER_SBUS_EXTERNAL_MODULE, "MODE_MASTER_SBUS_EXTERNAL_MODULE" },
|
||||||
|
{ TRAINER_MODE_MASTER_CPPM_EXTERNAL_MODULE, "MODE_MASTER_CPPM_EXTERNAL_MODULE" },
|
||||||
|
{ TRAINER_MODE_MASTER_BATTERY_COMPARTMENT, "MODE_MASTER_BATTERY_COMPARTMENT" },
|
||||||
|
{ TRAINER_MODE_MASTER_BLUETOOTH, "MODE_MASTER_BLUETOOTH" },
|
||||||
|
{ TRAINER_MODE_SLAVE_BLUETOOTH, "MODE_SLAVE_BLUETOOTH" },
|
||||||
|
{ TRAINER_MODE_MULTI, "MODE_MULTI" },
|
||||||
|
{ 0, NULL }
|
||||||
|
};
|
||||||
|
|
||||||
//
|
//
|
||||||
// Structs last
|
// Structs last
|
||||||
@@ -232,7 +266,7 @@ static const struct YamlNode struct_signed_16[] = {
|
|||||||
static const struct YamlNode struct_TrainerMix[] = {
|
static const struct YamlNode struct_TrainerMix[] = {
|
||||||
YAML_IDX,
|
YAML_IDX,
|
||||||
YAML_UNSIGNED( "srcChn", 6 ),
|
YAML_UNSIGNED( "srcChn", 6 ),
|
||||||
YAML_UNSIGNED( "mode", 2 ),
|
YAML_ENUM("mode", 2, enum_TrainerMultiplex),
|
||||||
YAML_SIGNED( "studWeight", 8 ),
|
YAML_SIGNED( "studWeight", 8 ),
|
||||||
YAML_END
|
YAML_END
|
||||||
};
|
};
|
||||||
@@ -321,7 +355,7 @@ static const struct YamlNode struct_RadioData[] = {
|
|||||||
YAML_UNSIGNED( "backlightBright", 8 ),
|
YAML_UNSIGNED( "backlightBright", 8 ),
|
||||||
YAML_UNSIGNED( "globalTimer", 32 ),
|
YAML_UNSIGNED( "globalTimer", 32 ),
|
||||||
YAML_UNSIGNED( "bluetoothBaudrate", 4 ),
|
YAML_UNSIGNED( "bluetoothBaudrate", 4 ),
|
||||||
YAML_UNSIGNED( "bluetoothMode", 4 ),
|
YAML_ENUM("bluetoothMode", 4, enum_BluetoothModes),
|
||||||
YAML_UNSIGNED( "countryCode", 2 ),
|
YAML_UNSIGNED( "countryCode", 2 ),
|
||||||
YAML_SIGNED( "pwrOnSpeed", 3 ),
|
YAML_SIGNED( "pwrOnSpeed", 3 ),
|
||||||
YAML_SIGNED( "pwrOffSpeed", 3 ),
|
YAML_SIGNED( "pwrOffSpeed", 3 ),
|
||||||
@@ -340,7 +374,7 @@ static const struct YamlNode struct_RadioData[] = {
|
|||||||
YAML_SIGNED_CUST( "varioRange", 8, r_vPitch, w_vPitch ),
|
YAML_SIGNED_CUST( "varioRange", 8, r_vPitch, w_vPitch ),
|
||||||
YAML_SIGNED( "varioRepeat", 8 ),
|
YAML_SIGNED( "varioRepeat", 8 ),
|
||||||
YAML_ARRAY("customFn", 88, 64, struct_CustomFunctionData, cfn_is_active),
|
YAML_ARRAY("customFn", 88, 64, struct_CustomFunctionData, cfn_is_active),
|
||||||
YAML_UNSIGNED( "auxSerialMode", 4 ),
|
YAML_ENUM("auxSerialMode", 4, enum_UartModes),
|
||||||
YAML_ARRAY("slidersConfig", 1, 4, struct_sliderConfig, nullptr),
|
YAML_ARRAY("slidersConfig", 1, 4, struct_sliderConfig, nullptr),
|
||||||
YAML_ARRAY("potsConfig", 2, 4, struct_potConfig, nullptr),
|
YAML_ARRAY("potsConfig", 2, 4, struct_potConfig, nullptr),
|
||||||
YAML_UNSIGNED( "backlightColor", 8 ),
|
YAML_UNSIGNED( "backlightColor", 8 ),
|
||||||
@@ -602,7 +636,7 @@ static const struct YamlNode struct_ModuleData[] = {
|
|||||||
YAML_END
|
YAML_END
|
||||||
};
|
};
|
||||||
static const struct YamlNode struct_TrainerModuleData[] = {
|
static const struct YamlNode struct_TrainerModuleData[] = {
|
||||||
YAML_UNSIGNED( "mode", 8 ),
|
YAML_ENUM("mode", 8, enum_TrainerMode),
|
||||||
YAML_UNSIGNED( "channelsStart", 8 ),
|
YAML_UNSIGNED( "channelsStart", 8 ),
|
||||||
YAML_SIGNED( "channelsCount", 8 ),
|
YAML_SIGNED( "channelsCount", 8 ),
|
||||||
YAML_SIGNED( "frameLength", 8 ),
|
YAML_SIGNED( "frameLength", 8 ),
|
||||||
@@ -756,7 +790,7 @@ static const struct YamlNode struct_ModelData[] = {
|
|||||||
YAML_STRUCT("swashR", 64, struct_SwashRingData, NULL),
|
YAML_STRUCT("swashR", 64, struct_SwashRingData, NULL),
|
||||||
YAML_ARRAY("flightModeData", 288, 9, struct_FlightModeData, fmd_is_active),
|
YAML_ARRAY("flightModeData", 288, 9, struct_FlightModeData, fmd_is_active),
|
||||||
YAML_UNSIGNED( "thrTraceSrc", 8 ),
|
YAML_UNSIGNED( "thrTraceSrc", 8 ),
|
||||||
YAML_UNSIGNED( "switchWarningState", 16 ),
|
YAML_UNSIGNED_CUST( "switchWarningState", 16, r_swtchWarn, w_swtchWarn ),
|
||||||
YAML_UNSIGNED( "switchWarningEnable", 8 ),
|
YAML_UNSIGNED( "switchWarningEnable", 8 ),
|
||||||
YAML_ARRAY("gvars", 56, 9, struct_GVarData, NULL),
|
YAML_ARRAY("gvars", 56, 9, struct_GVarData, NULL),
|
||||||
YAML_STRUCT("varioData", 40, struct_VarioData, NULL),
|
YAML_STRUCT("varioData", 40, struct_VarioData, NULL),
|
||||||
@@ -785,7 +819,7 @@ static const struct YamlNode struct_PartialModel[] = {
|
|||||||
YAML_END
|
YAML_END
|
||||||
};
|
};
|
||||||
|
|
||||||
#define MAX_RADIODATA_MODELDATA_PARTIALMODEL_STR_LEN 24
|
#define MAX_RADIODATA_MODELDATA_PARTIALMODEL_STR_LEN 32
|
||||||
|
|
||||||
static const struct YamlNode __RadioData_root_node = YAML_ROOT( struct_RadioData );
|
static const struct YamlNode __RadioData_root_node = YAML_ROOT( struct_RadioData );
|
||||||
|
|
||||||
|
|||||||
@@ -21,6 +21,12 @@ const struct YamlIdStr enum_AntennaModes[] = {
|
|||||||
{ ANTENNA_MODE_LAST, "MODE_LAST" },
|
{ ANTENNA_MODE_LAST, "MODE_LAST" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
|
const struct YamlIdStr enum_TrainerMultiplex[] = {
|
||||||
|
{ TRAINER_OFF, "OFF" },
|
||||||
|
{ TRAINER_ADD, "ADD" },
|
||||||
|
{ TRAINER_REPL, "REPL" },
|
||||||
|
{ 0, NULL }
|
||||||
|
};
|
||||||
const struct YamlIdStr enum_BeeperMode[] = {
|
const struct YamlIdStr enum_BeeperMode[] = {
|
||||||
{ e_mode_quiet, "mode_quiet" },
|
{ e_mode_quiet, "mode_quiet" },
|
||||||
{ e_mode_alarms, "mode_alarms" },
|
{ e_mode_alarms, "mode_alarms" },
|
||||||
@@ -28,6 +34,13 @@ const struct YamlIdStr enum_BeeperMode[] = {
|
|||||||
{ e_mode_all, "mode_all" },
|
{ e_mode_all, "mode_all" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
|
const struct YamlIdStr enum_BluetoothModes[] = {
|
||||||
|
{ BLUETOOTH_OFF, "OFF" },
|
||||||
|
{ BLUETOOTH_TELEMETRY, "TELEMETRY" },
|
||||||
|
{ BLUETOOTH_TRAINER, "TRAINER" },
|
||||||
|
{ BLUETOOTH_MAX, "MAX" },
|
||||||
|
{ 0, NULL }
|
||||||
|
};
|
||||||
const struct YamlIdStr enum_Functions[] = {
|
const struct YamlIdStr enum_Functions[] = {
|
||||||
{ FUNC_OVERRIDE_CHANNEL, "OVERRIDE_CHANNEL" },
|
{ FUNC_OVERRIDE_CHANNEL, "OVERRIDE_CHANNEL" },
|
||||||
{ FUNC_TRAINER, "TRAINER" },
|
{ FUNC_TRAINER, "TRAINER" },
|
||||||
@@ -57,6 +70,16 @@ const struct YamlIdStr enum_Functions[] = {
|
|||||||
{ FUNC_MAX, "MAX" },
|
{ FUNC_MAX, "MAX" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
|
const struct YamlIdStr enum_UartModes[] = {
|
||||||
|
{ UART_MODE_NONE, "MODE_NONE" },
|
||||||
|
{ UART_MODE_TELEMETRY_MIRROR, "MODE_TELEMETRY_MIRROR" },
|
||||||
|
{ UART_MODE_TELEMETRY, "MODE_TELEMETRY" },
|
||||||
|
{ UART_MODE_SBUS_TRAINER, "MODE_SBUS_TRAINER" },
|
||||||
|
{ UART_MODE_LUA, "MODE_LUA" },
|
||||||
|
{ UART_MODE_COUNT, "MODE_COUNT" },
|
||||||
|
{ UART_MODE_MAX, "MODE_MAX" },
|
||||||
|
{ 0, NULL }
|
||||||
|
};
|
||||||
const struct YamlIdStr enum_TimerModes[] = {
|
const struct YamlIdStr enum_TimerModes[] = {
|
||||||
{ TMRMODE_OFF, "OFF" },
|
{ TMRMODE_OFF, "OFF" },
|
||||||
{ TMRMODE_ON, "ON" },
|
{ TMRMODE_ON, "ON" },
|
||||||
@@ -71,7 +94,7 @@ const struct YamlIdStr enum_TimerModes[] = {
|
|||||||
const struct YamlIdStr enum_MixerMultiplex[] = {
|
const struct YamlIdStr enum_MixerMultiplex[] = {
|
||||||
{ MLTPX_ADD, "ADD" },
|
{ MLTPX_ADD, "ADD" },
|
||||||
{ MLTPX_MUL, "MUL" },
|
{ MLTPX_MUL, "MUL" },
|
||||||
{ MLTPX_REP, "REP" },
|
{ MLTPX_REPL, "REPL" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
const struct YamlIdStr enum_MixSources[] = {
|
const struct YamlIdStr enum_MixSources[] = {
|
||||||
@@ -219,6 +242,17 @@ const struct YamlIdStr enum_ModuleType[] = {
|
|||||||
{ MODULE_TYPE_MAX, "TYPE_MAX" },
|
{ MODULE_TYPE_MAX, "TYPE_MAX" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
|
const struct YamlIdStr enum_TrainerMode[] = {
|
||||||
|
{ TRAINER_MODE_MASTER_TRAINER_JACK, "MODE_MASTER_TRAINER_JACK" },
|
||||||
|
{ TRAINER_MODE_SLAVE, "MODE_SLAVE" },
|
||||||
|
{ TRAINER_MODE_MASTER_SBUS_EXTERNAL_MODULE, "MODE_MASTER_SBUS_EXTERNAL_MODULE" },
|
||||||
|
{ TRAINER_MODE_MASTER_CPPM_EXTERNAL_MODULE, "MODE_MASTER_CPPM_EXTERNAL_MODULE" },
|
||||||
|
{ TRAINER_MODE_MASTER_BATTERY_COMPARTMENT, "MODE_MASTER_BATTERY_COMPARTMENT" },
|
||||||
|
{ TRAINER_MODE_MASTER_BLUETOOTH, "MODE_MASTER_BLUETOOTH" },
|
||||||
|
{ TRAINER_MODE_SLAVE_BLUETOOTH, "MODE_SLAVE_BLUETOOTH" },
|
||||||
|
{ TRAINER_MODE_MULTI, "MODE_MULTI" },
|
||||||
|
{ 0, NULL }
|
||||||
|
};
|
||||||
|
|
||||||
//
|
//
|
||||||
// Structs last
|
// Structs last
|
||||||
@@ -239,7 +273,7 @@ static const struct YamlNode struct_signed_16[] = {
|
|||||||
static const struct YamlNode struct_TrainerMix[] = {
|
static const struct YamlNode struct_TrainerMix[] = {
|
||||||
YAML_IDX,
|
YAML_IDX,
|
||||||
YAML_UNSIGNED( "srcChn", 6 ),
|
YAML_UNSIGNED( "srcChn", 6 ),
|
||||||
YAML_UNSIGNED( "mode", 2 ),
|
YAML_ENUM("mode", 2, enum_TrainerMultiplex),
|
||||||
YAML_SIGNED( "studWeight", 8 ),
|
YAML_SIGNED( "studWeight", 8 ),
|
||||||
YAML_END
|
YAML_END
|
||||||
};
|
};
|
||||||
@@ -328,7 +362,7 @@ static const struct YamlNode struct_RadioData[] = {
|
|||||||
YAML_UNSIGNED( "backlightBright", 8 ),
|
YAML_UNSIGNED( "backlightBright", 8 ),
|
||||||
YAML_UNSIGNED( "globalTimer", 32 ),
|
YAML_UNSIGNED( "globalTimer", 32 ),
|
||||||
YAML_UNSIGNED( "bluetoothBaudrate", 4 ),
|
YAML_UNSIGNED( "bluetoothBaudrate", 4 ),
|
||||||
YAML_UNSIGNED( "bluetoothMode", 4 ),
|
YAML_ENUM("bluetoothMode", 4, enum_BluetoothModes),
|
||||||
YAML_UNSIGNED( "countryCode", 2 ),
|
YAML_UNSIGNED( "countryCode", 2 ),
|
||||||
YAML_SIGNED( "pwrOnSpeed", 3 ),
|
YAML_SIGNED( "pwrOnSpeed", 3 ),
|
||||||
YAML_SIGNED( "pwrOffSpeed", 3 ),
|
YAML_SIGNED( "pwrOffSpeed", 3 ),
|
||||||
@@ -347,7 +381,7 @@ static const struct YamlNode struct_RadioData[] = {
|
|||||||
YAML_SIGNED_CUST( "varioRange", 8, r_vPitch, w_vPitch ),
|
YAML_SIGNED_CUST( "varioRange", 8, r_vPitch, w_vPitch ),
|
||||||
YAML_SIGNED( "varioRepeat", 8 ),
|
YAML_SIGNED( "varioRepeat", 8 ),
|
||||||
YAML_ARRAY("customFn", 88, 64, struct_CustomFunctionData, cfn_is_active),
|
YAML_ARRAY("customFn", 88, 64, struct_CustomFunctionData, cfn_is_active),
|
||||||
YAML_UNSIGNED( "auxSerialMode", 4 ),
|
YAML_ENUM("auxSerialMode", 4, enum_UartModes),
|
||||||
YAML_ARRAY("slidersConfig", 1, 4, struct_sliderConfig, nullptr),
|
YAML_ARRAY("slidersConfig", 1, 4, struct_sliderConfig, nullptr),
|
||||||
YAML_ARRAY("potsConfig", 2, 4, struct_potConfig, nullptr),
|
YAML_ARRAY("potsConfig", 2, 4, struct_potConfig, nullptr),
|
||||||
YAML_UNSIGNED( "backlightColor", 8 ),
|
YAML_UNSIGNED( "backlightColor", 8 ),
|
||||||
@@ -610,7 +644,7 @@ static const struct YamlNode struct_ModuleData[] = {
|
|||||||
YAML_END
|
YAML_END
|
||||||
};
|
};
|
||||||
static const struct YamlNode struct_TrainerModuleData[] = {
|
static const struct YamlNode struct_TrainerModuleData[] = {
|
||||||
YAML_UNSIGNED( "mode", 8 ),
|
YAML_ENUM("mode", 8, enum_TrainerMode),
|
||||||
YAML_UNSIGNED( "channelsStart", 8 ),
|
YAML_UNSIGNED( "channelsStart", 8 ),
|
||||||
YAML_SIGNED( "channelsCount", 8 ),
|
YAML_SIGNED( "channelsCount", 8 ),
|
||||||
YAML_SIGNED( "frameLength", 8 ),
|
YAML_SIGNED( "frameLength", 8 ),
|
||||||
@@ -769,7 +803,7 @@ static const struct YamlNode struct_ModelData[] = {
|
|||||||
YAML_STRUCT("swashR", 64, struct_SwashRingData, NULL),
|
YAML_STRUCT("swashR", 64, struct_SwashRingData, NULL),
|
||||||
YAML_ARRAY("flightModeData", 320, 9, struct_FlightModeData, fmd_is_active),
|
YAML_ARRAY("flightModeData", 320, 9, struct_FlightModeData, fmd_is_active),
|
||||||
YAML_UNSIGNED( "thrTraceSrc", 8 ),
|
YAML_UNSIGNED( "thrTraceSrc", 8 ),
|
||||||
YAML_UNSIGNED( "switchWarningState", 32 ),
|
YAML_UNSIGNED_CUST( "switchWarningState", 32, r_swtchWarn, w_swtchWarn ),
|
||||||
YAML_UNSIGNED( "switchWarningEnable", 16 ),
|
YAML_UNSIGNED( "switchWarningEnable", 16 ),
|
||||||
YAML_ARRAY("gvars", 56, 9, struct_GVarData, NULL),
|
YAML_ARRAY("gvars", 56, 9, struct_GVarData, NULL),
|
||||||
YAML_STRUCT("varioData", 40, struct_VarioData, NULL),
|
YAML_STRUCT("varioData", 40, struct_VarioData, NULL),
|
||||||
@@ -800,7 +834,7 @@ static const struct YamlNode struct_PartialModel[] = {
|
|||||||
YAML_END
|
YAML_END
|
||||||
};
|
};
|
||||||
|
|
||||||
#define MAX_RADIODATA_MODELDATA_PARTIALMODEL_STR_LEN 24
|
#define MAX_RADIODATA_MODELDATA_PARTIALMODEL_STR_LEN 32
|
||||||
|
|
||||||
static const struct YamlNode __RadioData_root_node = YAML_ROOT( struct_RadioData );
|
static const struct YamlNode __RadioData_root_node = YAML_ROOT( struct_RadioData );
|
||||||
|
|
||||||
|
|||||||
@@ -21,6 +21,12 @@ const struct YamlIdStr enum_AntennaModes[] = {
|
|||||||
{ ANTENNA_MODE_LAST, "MODE_LAST" },
|
{ ANTENNA_MODE_LAST, "MODE_LAST" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
|
const struct YamlIdStr enum_TrainerMultiplex[] = {
|
||||||
|
{ TRAINER_OFF, "OFF" },
|
||||||
|
{ TRAINER_ADD, "ADD" },
|
||||||
|
{ TRAINER_REPL, "REPL" },
|
||||||
|
{ 0, NULL }
|
||||||
|
};
|
||||||
const struct YamlIdStr enum_BeeperMode[] = {
|
const struct YamlIdStr enum_BeeperMode[] = {
|
||||||
{ e_mode_quiet, "mode_quiet" },
|
{ e_mode_quiet, "mode_quiet" },
|
||||||
{ e_mode_alarms, "mode_alarms" },
|
{ e_mode_alarms, "mode_alarms" },
|
||||||
@@ -28,6 +34,13 @@ const struct YamlIdStr enum_BeeperMode[] = {
|
|||||||
{ e_mode_all, "mode_all" },
|
{ e_mode_all, "mode_all" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
|
const struct YamlIdStr enum_BluetoothModes[] = {
|
||||||
|
{ BLUETOOTH_OFF, "OFF" },
|
||||||
|
{ BLUETOOTH_TELEMETRY, "TELEMETRY" },
|
||||||
|
{ BLUETOOTH_TRAINER, "TRAINER" },
|
||||||
|
{ BLUETOOTH_MAX, "MAX" },
|
||||||
|
{ 0, NULL }
|
||||||
|
};
|
||||||
const struct YamlIdStr enum_Functions[] = {
|
const struct YamlIdStr enum_Functions[] = {
|
||||||
{ FUNC_OVERRIDE_CHANNEL, "OVERRIDE_CHANNEL" },
|
{ FUNC_OVERRIDE_CHANNEL, "OVERRIDE_CHANNEL" },
|
||||||
{ FUNC_TRAINER, "TRAINER" },
|
{ FUNC_TRAINER, "TRAINER" },
|
||||||
@@ -57,6 +70,16 @@ const struct YamlIdStr enum_Functions[] = {
|
|||||||
{ FUNC_MAX, "MAX" },
|
{ FUNC_MAX, "MAX" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
|
const struct YamlIdStr enum_UartModes[] = {
|
||||||
|
{ UART_MODE_NONE, "MODE_NONE" },
|
||||||
|
{ UART_MODE_TELEMETRY_MIRROR, "MODE_TELEMETRY_MIRROR" },
|
||||||
|
{ UART_MODE_TELEMETRY, "MODE_TELEMETRY" },
|
||||||
|
{ UART_MODE_SBUS_TRAINER, "MODE_SBUS_TRAINER" },
|
||||||
|
{ UART_MODE_LUA, "MODE_LUA" },
|
||||||
|
{ UART_MODE_COUNT, "MODE_COUNT" },
|
||||||
|
{ UART_MODE_MAX, "MODE_MAX" },
|
||||||
|
{ 0, NULL }
|
||||||
|
};
|
||||||
const struct YamlIdStr enum_TimerModes[] = {
|
const struct YamlIdStr enum_TimerModes[] = {
|
||||||
{ TMRMODE_OFF, "OFF" },
|
{ TMRMODE_OFF, "OFF" },
|
||||||
{ TMRMODE_ON, "ON" },
|
{ TMRMODE_ON, "ON" },
|
||||||
@@ -71,7 +94,7 @@ const struct YamlIdStr enum_TimerModes[] = {
|
|||||||
const struct YamlIdStr enum_MixerMultiplex[] = {
|
const struct YamlIdStr enum_MixerMultiplex[] = {
|
||||||
{ MLTPX_ADD, "ADD" },
|
{ MLTPX_ADD, "ADD" },
|
||||||
{ MLTPX_MUL, "MUL" },
|
{ MLTPX_MUL, "MUL" },
|
||||||
{ MLTPX_REP, "REP" },
|
{ MLTPX_REPL, "REPL" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
const struct YamlIdStr enum_MixSources[] = {
|
const struct YamlIdStr enum_MixSources[] = {
|
||||||
@@ -258,6 +281,17 @@ const struct YamlIdStr enum_ModuleType[] = {
|
|||||||
{ MODULE_TYPE_MAX, "TYPE_MAX" },
|
{ MODULE_TYPE_MAX, "TYPE_MAX" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
|
const struct YamlIdStr enum_TrainerMode[] = {
|
||||||
|
{ TRAINER_MODE_MASTER_TRAINER_JACK, "MODE_MASTER_TRAINER_JACK" },
|
||||||
|
{ TRAINER_MODE_SLAVE, "MODE_SLAVE" },
|
||||||
|
{ TRAINER_MODE_MASTER_SBUS_EXTERNAL_MODULE, "MODE_MASTER_SBUS_EXTERNAL_MODULE" },
|
||||||
|
{ TRAINER_MODE_MASTER_CPPM_EXTERNAL_MODULE, "MODE_MASTER_CPPM_EXTERNAL_MODULE" },
|
||||||
|
{ TRAINER_MODE_MASTER_BATTERY_COMPARTMENT, "MODE_MASTER_BATTERY_COMPARTMENT" },
|
||||||
|
{ TRAINER_MODE_MASTER_BLUETOOTH, "MODE_MASTER_BLUETOOTH" },
|
||||||
|
{ TRAINER_MODE_SLAVE_BLUETOOTH, "MODE_SLAVE_BLUETOOTH" },
|
||||||
|
{ TRAINER_MODE_MULTI, "MODE_MULTI" },
|
||||||
|
{ 0, NULL }
|
||||||
|
};
|
||||||
|
|
||||||
//
|
//
|
||||||
// Structs last
|
// Structs last
|
||||||
@@ -278,7 +312,7 @@ static const struct YamlNode struct_signed_16[] = {
|
|||||||
static const struct YamlNode struct_TrainerMix[] = {
|
static const struct YamlNode struct_TrainerMix[] = {
|
||||||
YAML_IDX,
|
YAML_IDX,
|
||||||
YAML_UNSIGNED( "srcChn", 6 ),
|
YAML_UNSIGNED( "srcChn", 6 ),
|
||||||
YAML_UNSIGNED( "mode", 2 ),
|
YAML_ENUM("mode", 2, enum_TrainerMultiplex),
|
||||||
YAML_SIGNED( "studWeight", 8 ),
|
YAML_SIGNED( "studWeight", 8 ),
|
||||||
YAML_END
|
YAML_END
|
||||||
};
|
};
|
||||||
@@ -367,7 +401,7 @@ static const struct YamlNode struct_RadioData[] = {
|
|||||||
YAML_UNSIGNED( "backlightBright", 8 ),
|
YAML_UNSIGNED( "backlightBright", 8 ),
|
||||||
YAML_UNSIGNED( "globalTimer", 32 ),
|
YAML_UNSIGNED( "globalTimer", 32 ),
|
||||||
YAML_UNSIGNED( "bluetoothBaudrate", 4 ),
|
YAML_UNSIGNED( "bluetoothBaudrate", 4 ),
|
||||||
YAML_UNSIGNED( "bluetoothMode", 4 ),
|
YAML_ENUM("bluetoothMode", 4, enum_BluetoothModes),
|
||||||
YAML_UNSIGNED( "countryCode", 2 ),
|
YAML_UNSIGNED( "countryCode", 2 ),
|
||||||
YAML_SIGNED( "pwrOnSpeed", 3 ),
|
YAML_SIGNED( "pwrOnSpeed", 3 ),
|
||||||
YAML_SIGNED( "pwrOffSpeed", 3 ),
|
YAML_SIGNED( "pwrOffSpeed", 3 ),
|
||||||
@@ -386,7 +420,7 @@ static const struct YamlNode struct_RadioData[] = {
|
|||||||
YAML_SIGNED_CUST( "varioRange", 8, r_vPitch, w_vPitch ),
|
YAML_SIGNED_CUST( "varioRange", 8, r_vPitch, w_vPitch ),
|
||||||
YAML_SIGNED( "varioRepeat", 8 ),
|
YAML_SIGNED( "varioRepeat", 8 ),
|
||||||
YAML_ARRAY("customFn", 88, 64, struct_CustomFunctionData, cfn_is_active),
|
YAML_ARRAY("customFn", 88, 64, struct_CustomFunctionData, cfn_is_active),
|
||||||
YAML_UNSIGNED( "auxSerialMode", 4 ),
|
YAML_ENUM("auxSerialMode", 4, enum_UartModes),
|
||||||
YAML_ARRAY("slidersConfig", 1, 4, struct_sliderConfig, nullptr),
|
YAML_ARRAY("slidersConfig", 1, 4, struct_sliderConfig, nullptr),
|
||||||
YAML_ARRAY("potsConfig", 2, 4, struct_potConfig, nullptr),
|
YAML_ARRAY("potsConfig", 2, 4, struct_potConfig, nullptr),
|
||||||
YAML_UNSIGNED( "backlightColor", 8 ),
|
YAML_UNSIGNED( "backlightColor", 8 ),
|
||||||
@@ -649,7 +683,7 @@ static const struct YamlNode struct_ModuleData[] = {
|
|||||||
YAML_END
|
YAML_END
|
||||||
};
|
};
|
||||||
static const struct YamlNode struct_TrainerModuleData[] = {
|
static const struct YamlNode struct_TrainerModuleData[] = {
|
||||||
YAML_UNSIGNED( "mode", 8 ),
|
YAML_ENUM("mode", 8, enum_TrainerMode),
|
||||||
YAML_UNSIGNED( "channelsStart", 8 ),
|
YAML_UNSIGNED( "channelsStart", 8 ),
|
||||||
YAML_SIGNED( "channelsCount", 8 ),
|
YAML_SIGNED( "channelsCount", 8 ),
|
||||||
YAML_SIGNED( "frameLength", 8 ),
|
YAML_SIGNED( "frameLength", 8 ),
|
||||||
@@ -808,7 +842,7 @@ static const struct YamlNode struct_ModelData[] = {
|
|||||||
YAML_STRUCT("swashR", 64, struct_SwashRingData, NULL),
|
YAML_STRUCT("swashR", 64, struct_SwashRingData, NULL),
|
||||||
YAML_ARRAY("flightModeData", 320, 9, struct_FlightModeData, fmd_is_active),
|
YAML_ARRAY("flightModeData", 320, 9, struct_FlightModeData, fmd_is_active),
|
||||||
YAML_UNSIGNED( "thrTraceSrc", 8 ),
|
YAML_UNSIGNED( "thrTraceSrc", 8 ),
|
||||||
YAML_UNSIGNED( "switchWarningState", 64 ),
|
YAML_UNSIGNED_CUST( "switchWarningState", 64, r_swtchWarn, w_swtchWarn ),
|
||||||
YAML_UNSIGNED( "switchWarningEnable", 32 ),
|
YAML_UNSIGNED( "switchWarningEnable", 32 ),
|
||||||
YAML_ARRAY("gvars", 56, 9, struct_GVarData, NULL),
|
YAML_ARRAY("gvars", 56, 9, struct_GVarData, NULL),
|
||||||
YAML_STRUCT("varioData", 40, struct_VarioData, NULL),
|
YAML_STRUCT("varioData", 40, struct_VarioData, NULL),
|
||||||
@@ -840,7 +874,7 @@ static const struct YamlNode struct_PartialModel[] = {
|
|||||||
YAML_END
|
YAML_END
|
||||||
};
|
};
|
||||||
|
|
||||||
#define MAX_RADIODATA_MODELDATA_PARTIALMODEL_STR_LEN 24
|
#define MAX_RADIODATA_MODELDATA_PARTIALMODEL_STR_LEN 32
|
||||||
|
|
||||||
static const struct YamlNode __RadioData_root_node = YAML_ROOT( struct_RadioData );
|
static const struct YamlNode __RadioData_root_node = YAML_ROOT( struct_RadioData );
|
||||||
|
|
||||||
|
|||||||
@@ -21,6 +21,12 @@ const struct YamlIdStr enum_AntennaModes[] = {
|
|||||||
{ ANTENNA_MODE_LAST, "MODE_LAST" },
|
{ ANTENNA_MODE_LAST, "MODE_LAST" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
|
const struct YamlIdStr enum_TrainerMultiplex[] = {
|
||||||
|
{ TRAINER_OFF, "OFF" },
|
||||||
|
{ TRAINER_ADD, "ADD" },
|
||||||
|
{ TRAINER_REPL, "REPL" },
|
||||||
|
{ 0, NULL }
|
||||||
|
};
|
||||||
const struct YamlIdStr enum_BeeperMode[] = {
|
const struct YamlIdStr enum_BeeperMode[] = {
|
||||||
{ e_mode_quiet, "mode_quiet" },
|
{ e_mode_quiet, "mode_quiet" },
|
||||||
{ e_mode_alarms, "mode_alarms" },
|
{ e_mode_alarms, "mode_alarms" },
|
||||||
@@ -28,6 +34,13 @@ const struct YamlIdStr enum_BeeperMode[] = {
|
|||||||
{ e_mode_all, "mode_all" },
|
{ e_mode_all, "mode_all" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
|
const struct YamlIdStr enum_BluetoothModes[] = {
|
||||||
|
{ BLUETOOTH_OFF, "OFF" },
|
||||||
|
{ BLUETOOTH_TELEMETRY, "TELEMETRY" },
|
||||||
|
{ BLUETOOTH_TRAINER, "TRAINER" },
|
||||||
|
{ BLUETOOTH_MAX, "MAX" },
|
||||||
|
{ 0, NULL }
|
||||||
|
};
|
||||||
const struct YamlIdStr enum_Functions[] = {
|
const struct YamlIdStr enum_Functions[] = {
|
||||||
{ FUNC_OVERRIDE_CHANNEL, "OVERRIDE_CHANNEL" },
|
{ FUNC_OVERRIDE_CHANNEL, "OVERRIDE_CHANNEL" },
|
||||||
{ FUNC_TRAINER, "TRAINER" },
|
{ FUNC_TRAINER, "TRAINER" },
|
||||||
@@ -57,6 +70,16 @@ const struct YamlIdStr enum_Functions[] = {
|
|||||||
{ FUNC_MAX, "MAX" },
|
{ FUNC_MAX, "MAX" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
|
const struct YamlIdStr enum_UartModes[] = {
|
||||||
|
{ UART_MODE_NONE, "MODE_NONE" },
|
||||||
|
{ UART_MODE_TELEMETRY_MIRROR, "MODE_TELEMETRY_MIRROR" },
|
||||||
|
{ UART_MODE_TELEMETRY, "MODE_TELEMETRY" },
|
||||||
|
{ UART_MODE_SBUS_TRAINER, "MODE_SBUS_TRAINER" },
|
||||||
|
{ UART_MODE_LUA, "MODE_LUA" },
|
||||||
|
{ UART_MODE_COUNT, "MODE_COUNT" },
|
||||||
|
{ UART_MODE_MAX, "MODE_MAX" },
|
||||||
|
{ 0, NULL }
|
||||||
|
};
|
||||||
const struct YamlIdStr enum_TimerModes[] = {
|
const struct YamlIdStr enum_TimerModes[] = {
|
||||||
{ TMRMODE_OFF, "OFF" },
|
{ TMRMODE_OFF, "OFF" },
|
||||||
{ TMRMODE_ON, "ON" },
|
{ TMRMODE_ON, "ON" },
|
||||||
@@ -71,7 +94,7 @@ const struct YamlIdStr enum_TimerModes[] = {
|
|||||||
const struct YamlIdStr enum_MixerMultiplex[] = {
|
const struct YamlIdStr enum_MixerMultiplex[] = {
|
||||||
{ MLTPX_ADD, "ADD" },
|
{ MLTPX_ADD, "ADD" },
|
||||||
{ MLTPX_MUL, "MUL" },
|
{ MLTPX_MUL, "MUL" },
|
||||||
{ MLTPX_REP, "REP" },
|
{ MLTPX_REPL, "REPL" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
const struct YamlIdStr enum_MixSources[] = {
|
const struct YamlIdStr enum_MixSources[] = {
|
||||||
@@ -199,6 +222,17 @@ const struct YamlIdStr enum_ModuleType[] = {
|
|||||||
{ MODULE_TYPE_MAX, "TYPE_MAX" },
|
{ MODULE_TYPE_MAX, "TYPE_MAX" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
|
const struct YamlIdStr enum_TrainerMode[] = {
|
||||||
|
{ TRAINER_MODE_MASTER_TRAINER_JACK, "MODE_MASTER_TRAINER_JACK" },
|
||||||
|
{ TRAINER_MODE_SLAVE, "MODE_SLAVE" },
|
||||||
|
{ TRAINER_MODE_MASTER_SBUS_EXTERNAL_MODULE, "MODE_MASTER_SBUS_EXTERNAL_MODULE" },
|
||||||
|
{ TRAINER_MODE_MASTER_CPPM_EXTERNAL_MODULE, "MODE_MASTER_CPPM_EXTERNAL_MODULE" },
|
||||||
|
{ TRAINER_MODE_MASTER_BATTERY_COMPARTMENT, "MODE_MASTER_BATTERY_COMPARTMENT" },
|
||||||
|
{ TRAINER_MODE_MASTER_BLUETOOTH, "MODE_MASTER_BLUETOOTH" },
|
||||||
|
{ TRAINER_MODE_SLAVE_BLUETOOTH, "MODE_SLAVE_BLUETOOTH" },
|
||||||
|
{ TRAINER_MODE_MULTI, "MODE_MULTI" },
|
||||||
|
{ 0, NULL }
|
||||||
|
};
|
||||||
|
|
||||||
//
|
//
|
||||||
// Structs last
|
// Structs last
|
||||||
@@ -219,7 +253,7 @@ static const struct YamlNode struct_signed_16[] = {
|
|||||||
static const struct YamlNode struct_TrainerMix[] = {
|
static const struct YamlNode struct_TrainerMix[] = {
|
||||||
YAML_IDX,
|
YAML_IDX,
|
||||||
YAML_UNSIGNED( "srcChn", 6 ),
|
YAML_UNSIGNED( "srcChn", 6 ),
|
||||||
YAML_UNSIGNED( "mode", 2 ),
|
YAML_ENUM("mode", 2, enum_TrainerMultiplex),
|
||||||
YAML_SIGNED( "studWeight", 8 ),
|
YAML_SIGNED( "studWeight", 8 ),
|
||||||
YAML_END
|
YAML_END
|
||||||
};
|
};
|
||||||
@@ -308,7 +342,7 @@ static const struct YamlNode struct_RadioData[] = {
|
|||||||
YAML_UNSIGNED( "backlightBright", 8 ),
|
YAML_UNSIGNED( "backlightBright", 8 ),
|
||||||
YAML_UNSIGNED( "globalTimer", 32 ),
|
YAML_UNSIGNED( "globalTimer", 32 ),
|
||||||
YAML_UNSIGNED( "bluetoothBaudrate", 4 ),
|
YAML_UNSIGNED( "bluetoothBaudrate", 4 ),
|
||||||
YAML_UNSIGNED( "bluetoothMode", 4 ),
|
YAML_ENUM("bluetoothMode", 4, enum_BluetoothModes),
|
||||||
YAML_UNSIGNED( "countryCode", 2 ),
|
YAML_UNSIGNED( "countryCode", 2 ),
|
||||||
YAML_SIGNED( "pwrOnSpeed", 3 ),
|
YAML_SIGNED( "pwrOnSpeed", 3 ),
|
||||||
YAML_SIGNED( "pwrOffSpeed", 3 ),
|
YAML_SIGNED( "pwrOffSpeed", 3 ),
|
||||||
@@ -327,7 +361,7 @@ static const struct YamlNode struct_RadioData[] = {
|
|||||||
YAML_SIGNED_CUST( "varioRange", 8, r_vPitch, w_vPitch ),
|
YAML_SIGNED_CUST( "varioRange", 8, r_vPitch, w_vPitch ),
|
||||||
YAML_SIGNED( "varioRepeat", 8 ),
|
YAML_SIGNED( "varioRepeat", 8 ),
|
||||||
YAML_ARRAY("customFn", 88, 64, struct_CustomFunctionData, cfn_is_active),
|
YAML_ARRAY("customFn", 88, 64, struct_CustomFunctionData, cfn_is_active),
|
||||||
YAML_UNSIGNED( "auxSerialMode", 4 ),
|
YAML_ENUM("auxSerialMode", 4, enum_UartModes),
|
||||||
YAML_ARRAY("slidersConfig", 1, 4, struct_sliderConfig, nullptr),
|
YAML_ARRAY("slidersConfig", 1, 4, struct_sliderConfig, nullptr),
|
||||||
YAML_ARRAY("potsConfig", 2, 4, struct_potConfig, nullptr),
|
YAML_ARRAY("potsConfig", 2, 4, struct_potConfig, nullptr),
|
||||||
YAML_UNSIGNED( "backlightColor", 8 ),
|
YAML_UNSIGNED( "backlightColor", 8 ),
|
||||||
@@ -587,7 +621,7 @@ static const struct YamlNode struct_ModuleData[] = {
|
|||||||
YAML_END
|
YAML_END
|
||||||
};
|
};
|
||||||
static const struct YamlNode struct_TrainerModuleData[] = {
|
static const struct YamlNode struct_TrainerModuleData[] = {
|
||||||
YAML_UNSIGNED( "mode", 8 ),
|
YAML_ENUM("mode", 8, enum_TrainerMode),
|
||||||
YAML_UNSIGNED( "channelsStart", 8 ),
|
YAML_UNSIGNED( "channelsStart", 8 ),
|
||||||
YAML_SIGNED( "channelsCount", 8 ),
|
YAML_SIGNED( "channelsCount", 8 ),
|
||||||
YAML_SIGNED( "frameLength", 8 ),
|
YAML_SIGNED( "frameLength", 8 ),
|
||||||
@@ -741,7 +775,7 @@ static const struct YamlNode struct_ModelData[] = {
|
|||||||
YAML_STRUCT("swashR", 64, struct_SwashRingData, NULL),
|
YAML_STRUCT("swashR", 64, struct_SwashRingData, NULL),
|
||||||
YAML_ARRAY("flightModeData", 288, 9, struct_FlightModeData, fmd_is_active),
|
YAML_ARRAY("flightModeData", 288, 9, struct_FlightModeData, fmd_is_active),
|
||||||
YAML_UNSIGNED( "thrTraceSrc", 8 ),
|
YAML_UNSIGNED( "thrTraceSrc", 8 ),
|
||||||
YAML_UNSIGNED( "switchWarningState", 16 ),
|
YAML_UNSIGNED_CUST( "switchWarningState", 16, r_swtchWarn, w_swtchWarn ),
|
||||||
YAML_UNSIGNED( "switchWarningEnable", 8 ),
|
YAML_UNSIGNED( "switchWarningEnable", 8 ),
|
||||||
YAML_ARRAY("gvars", 56, 9, struct_GVarData, NULL),
|
YAML_ARRAY("gvars", 56, 9, struct_GVarData, NULL),
|
||||||
YAML_STRUCT("varioData", 40, struct_VarioData, NULL),
|
YAML_STRUCT("varioData", 40, struct_VarioData, NULL),
|
||||||
@@ -770,7 +804,7 @@ static const struct YamlNode struct_PartialModel[] = {
|
|||||||
YAML_END
|
YAML_END
|
||||||
};
|
};
|
||||||
|
|
||||||
#define MAX_RADIODATA_MODELDATA_PARTIALMODEL_STR_LEN 24
|
#define MAX_RADIODATA_MODELDATA_PARTIALMODEL_STR_LEN 32
|
||||||
|
|
||||||
static const struct YamlNode __RadioData_root_node = YAML_ROOT( struct_RadioData );
|
static const struct YamlNode __RadioData_root_node = YAML_ROOT( struct_RadioData );
|
||||||
|
|
||||||
|
|||||||
@@ -21,6 +21,12 @@ const struct YamlIdStr enum_AntennaModes[] = {
|
|||||||
{ ANTENNA_MODE_LAST, "MODE_LAST" },
|
{ ANTENNA_MODE_LAST, "MODE_LAST" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
|
const struct YamlIdStr enum_TrainerMultiplex[] = {
|
||||||
|
{ TRAINER_OFF, "OFF" },
|
||||||
|
{ TRAINER_ADD, "ADD" },
|
||||||
|
{ TRAINER_REPL, "REPL" },
|
||||||
|
{ 0, NULL }
|
||||||
|
};
|
||||||
const struct YamlIdStr enum_BeeperMode[] = {
|
const struct YamlIdStr enum_BeeperMode[] = {
|
||||||
{ e_mode_quiet, "mode_quiet" },
|
{ e_mode_quiet, "mode_quiet" },
|
||||||
{ e_mode_alarms, "mode_alarms" },
|
{ e_mode_alarms, "mode_alarms" },
|
||||||
@@ -28,6 +34,13 @@ const struct YamlIdStr enum_BeeperMode[] = {
|
|||||||
{ e_mode_all, "mode_all" },
|
{ e_mode_all, "mode_all" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
|
const struct YamlIdStr enum_BluetoothModes[] = {
|
||||||
|
{ BLUETOOTH_OFF, "OFF" },
|
||||||
|
{ BLUETOOTH_TELEMETRY, "TELEMETRY" },
|
||||||
|
{ BLUETOOTH_TRAINER, "TRAINER" },
|
||||||
|
{ BLUETOOTH_MAX, "MAX" },
|
||||||
|
{ 0, NULL }
|
||||||
|
};
|
||||||
const struct YamlIdStr enum_Functions[] = {
|
const struct YamlIdStr enum_Functions[] = {
|
||||||
{ FUNC_OVERRIDE_CHANNEL, "OVERRIDE_CHANNEL" },
|
{ FUNC_OVERRIDE_CHANNEL, "OVERRIDE_CHANNEL" },
|
||||||
{ FUNC_TRAINER, "TRAINER" },
|
{ FUNC_TRAINER, "TRAINER" },
|
||||||
@@ -57,6 +70,16 @@ const struct YamlIdStr enum_Functions[] = {
|
|||||||
{ FUNC_MAX, "MAX" },
|
{ FUNC_MAX, "MAX" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
|
const struct YamlIdStr enum_UartModes[] = {
|
||||||
|
{ UART_MODE_NONE, "MODE_NONE" },
|
||||||
|
{ UART_MODE_TELEMETRY_MIRROR, "MODE_TELEMETRY_MIRROR" },
|
||||||
|
{ UART_MODE_TELEMETRY, "MODE_TELEMETRY" },
|
||||||
|
{ UART_MODE_SBUS_TRAINER, "MODE_SBUS_TRAINER" },
|
||||||
|
{ UART_MODE_LUA, "MODE_LUA" },
|
||||||
|
{ UART_MODE_COUNT, "MODE_COUNT" },
|
||||||
|
{ UART_MODE_MAX, "MODE_MAX" },
|
||||||
|
{ 0, NULL }
|
||||||
|
};
|
||||||
const struct YamlIdStr enum_TimerModes[] = {
|
const struct YamlIdStr enum_TimerModes[] = {
|
||||||
{ TMRMODE_OFF, "OFF" },
|
{ TMRMODE_OFF, "OFF" },
|
||||||
{ TMRMODE_ON, "ON" },
|
{ TMRMODE_ON, "ON" },
|
||||||
@@ -71,7 +94,7 @@ const struct YamlIdStr enum_TimerModes[] = {
|
|||||||
const struct YamlIdStr enum_MixerMultiplex[] = {
|
const struct YamlIdStr enum_MixerMultiplex[] = {
|
||||||
{ MLTPX_ADD, "ADD" },
|
{ MLTPX_ADD, "ADD" },
|
||||||
{ MLTPX_MUL, "MUL" },
|
{ MLTPX_MUL, "MUL" },
|
||||||
{ MLTPX_REP, "REP" },
|
{ MLTPX_REPL, "REPL" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
const struct YamlIdStr enum_MixSources[] = {
|
const struct YamlIdStr enum_MixSources[] = {
|
||||||
@@ -207,6 +230,17 @@ const struct YamlIdStr enum_ModuleType[] = {
|
|||||||
{ MODULE_TYPE_MAX, "TYPE_MAX" },
|
{ MODULE_TYPE_MAX, "TYPE_MAX" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
|
const struct YamlIdStr enum_TrainerMode[] = {
|
||||||
|
{ TRAINER_MODE_MASTER_TRAINER_JACK, "MODE_MASTER_TRAINER_JACK" },
|
||||||
|
{ TRAINER_MODE_SLAVE, "MODE_SLAVE" },
|
||||||
|
{ TRAINER_MODE_MASTER_SBUS_EXTERNAL_MODULE, "MODE_MASTER_SBUS_EXTERNAL_MODULE" },
|
||||||
|
{ TRAINER_MODE_MASTER_CPPM_EXTERNAL_MODULE, "MODE_MASTER_CPPM_EXTERNAL_MODULE" },
|
||||||
|
{ TRAINER_MODE_MASTER_BATTERY_COMPARTMENT, "MODE_MASTER_BATTERY_COMPARTMENT" },
|
||||||
|
{ TRAINER_MODE_MASTER_BLUETOOTH, "MODE_MASTER_BLUETOOTH" },
|
||||||
|
{ TRAINER_MODE_SLAVE_BLUETOOTH, "MODE_SLAVE_BLUETOOTH" },
|
||||||
|
{ TRAINER_MODE_MULTI, "MODE_MULTI" },
|
||||||
|
{ 0, NULL }
|
||||||
|
};
|
||||||
|
|
||||||
//
|
//
|
||||||
// Structs last
|
// Structs last
|
||||||
@@ -227,7 +261,7 @@ static const struct YamlNode struct_signed_16[] = {
|
|||||||
static const struct YamlNode struct_TrainerMix[] = {
|
static const struct YamlNode struct_TrainerMix[] = {
|
||||||
YAML_IDX,
|
YAML_IDX,
|
||||||
YAML_UNSIGNED( "srcChn", 6 ),
|
YAML_UNSIGNED( "srcChn", 6 ),
|
||||||
YAML_UNSIGNED( "mode", 2 ),
|
YAML_ENUM("mode", 2, enum_TrainerMultiplex),
|
||||||
YAML_SIGNED( "studWeight", 8 ),
|
YAML_SIGNED( "studWeight", 8 ),
|
||||||
YAML_END
|
YAML_END
|
||||||
};
|
};
|
||||||
@@ -316,7 +350,7 @@ static const struct YamlNode struct_RadioData[] = {
|
|||||||
YAML_UNSIGNED( "backlightBright", 8 ),
|
YAML_UNSIGNED( "backlightBright", 8 ),
|
||||||
YAML_UNSIGNED( "globalTimer", 32 ),
|
YAML_UNSIGNED( "globalTimer", 32 ),
|
||||||
YAML_UNSIGNED( "bluetoothBaudrate", 4 ),
|
YAML_UNSIGNED( "bluetoothBaudrate", 4 ),
|
||||||
YAML_UNSIGNED( "bluetoothMode", 4 ),
|
YAML_ENUM("bluetoothMode", 4, enum_BluetoothModes),
|
||||||
YAML_UNSIGNED( "countryCode", 2 ),
|
YAML_UNSIGNED( "countryCode", 2 ),
|
||||||
YAML_SIGNED( "pwrOnSpeed", 3 ),
|
YAML_SIGNED( "pwrOnSpeed", 3 ),
|
||||||
YAML_SIGNED( "pwrOffSpeed", 3 ),
|
YAML_SIGNED( "pwrOffSpeed", 3 ),
|
||||||
@@ -335,7 +369,7 @@ static const struct YamlNode struct_RadioData[] = {
|
|||||||
YAML_SIGNED_CUST( "varioRange", 8, r_vPitch, w_vPitch ),
|
YAML_SIGNED_CUST( "varioRange", 8, r_vPitch, w_vPitch ),
|
||||||
YAML_SIGNED( "varioRepeat", 8 ),
|
YAML_SIGNED( "varioRepeat", 8 ),
|
||||||
YAML_ARRAY("customFn", 88, 64, struct_CustomFunctionData, cfn_is_active),
|
YAML_ARRAY("customFn", 88, 64, struct_CustomFunctionData, cfn_is_active),
|
||||||
YAML_UNSIGNED( "auxSerialMode", 4 ),
|
YAML_ENUM("auxSerialMode", 4, enum_UartModes),
|
||||||
YAML_ARRAY("slidersConfig", 1, 4, struct_sliderConfig, nullptr),
|
YAML_ARRAY("slidersConfig", 1, 4, struct_sliderConfig, nullptr),
|
||||||
YAML_ARRAY("potsConfig", 2, 4, struct_potConfig, nullptr),
|
YAML_ARRAY("potsConfig", 2, 4, struct_potConfig, nullptr),
|
||||||
YAML_UNSIGNED( "backlightColor", 8 ),
|
YAML_UNSIGNED( "backlightColor", 8 ),
|
||||||
@@ -597,7 +631,7 @@ static const struct YamlNode struct_ModuleData[] = {
|
|||||||
YAML_END
|
YAML_END
|
||||||
};
|
};
|
||||||
static const struct YamlNode struct_TrainerModuleData[] = {
|
static const struct YamlNode struct_TrainerModuleData[] = {
|
||||||
YAML_UNSIGNED( "mode", 8 ),
|
YAML_ENUM("mode", 8, enum_TrainerMode),
|
||||||
YAML_UNSIGNED( "channelsStart", 8 ),
|
YAML_UNSIGNED( "channelsStart", 8 ),
|
||||||
YAML_SIGNED( "channelsCount", 8 ),
|
YAML_SIGNED( "channelsCount", 8 ),
|
||||||
YAML_SIGNED( "frameLength", 8 ),
|
YAML_SIGNED( "frameLength", 8 ),
|
||||||
@@ -751,7 +785,7 @@ static const struct YamlNode struct_ModelData[] = {
|
|||||||
YAML_STRUCT("swashR", 64, struct_SwashRingData, NULL),
|
YAML_STRUCT("swashR", 64, struct_SwashRingData, NULL),
|
||||||
YAML_ARRAY("flightModeData", 288, 9, struct_FlightModeData, fmd_is_active),
|
YAML_ARRAY("flightModeData", 288, 9, struct_FlightModeData, fmd_is_active),
|
||||||
YAML_UNSIGNED( "thrTraceSrc", 8 ),
|
YAML_UNSIGNED( "thrTraceSrc", 8 ),
|
||||||
YAML_UNSIGNED( "switchWarningState", 16 ),
|
YAML_UNSIGNED_CUST( "switchWarningState", 16, r_swtchWarn, w_swtchWarn ),
|
||||||
YAML_UNSIGNED( "switchWarningEnable", 8 ),
|
YAML_UNSIGNED( "switchWarningEnable", 8 ),
|
||||||
YAML_ARRAY("gvars", 56, 9, struct_GVarData, NULL),
|
YAML_ARRAY("gvars", 56, 9, struct_GVarData, NULL),
|
||||||
YAML_STRUCT("varioData", 40, struct_VarioData, NULL),
|
YAML_STRUCT("varioData", 40, struct_VarioData, NULL),
|
||||||
@@ -780,7 +814,7 @@ static const struct YamlNode struct_PartialModel[] = {
|
|||||||
YAML_END
|
YAML_END
|
||||||
};
|
};
|
||||||
|
|
||||||
#define MAX_RADIODATA_MODELDATA_PARTIALMODEL_STR_LEN 24
|
#define MAX_RADIODATA_MODELDATA_PARTIALMODEL_STR_LEN 32
|
||||||
|
|
||||||
static const struct YamlNode __RadioData_root_node = YAML_ROOT( struct_RadioData );
|
static const struct YamlNode __RadioData_root_node = YAML_ROOT( struct_RadioData );
|
||||||
|
|
||||||
|
|||||||
@@ -21,6 +21,12 @@ const struct YamlIdStr enum_AntennaModes[] = {
|
|||||||
{ ANTENNA_MODE_LAST, "MODE_LAST" },
|
{ ANTENNA_MODE_LAST, "MODE_LAST" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
|
const struct YamlIdStr enum_TrainerMultiplex[] = {
|
||||||
|
{ TRAINER_OFF, "OFF" },
|
||||||
|
{ TRAINER_ADD, "ADD" },
|
||||||
|
{ TRAINER_REPL, "REPL" },
|
||||||
|
{ 0, NULL }
|
||||||
|
};
|
||||||
const struct YamlIdStr enum_BeeperMode[] = {
|
const struct YamlIdStr enum_BeeperMode[] = {
|
||||||
{ e_mode_quiet, "mode_quiet" },
|
{ e_mode_quiet, "mode_quiet" },
|
||||||
{ e_mode_alarms, "mode_alarms" },
|
{ e_mode_alarms, "mode_alarms" },
|
||||||
@@ -28,6 +34,13 @@ const struct YamlIdStr enum_BeeperMode[] = {
|
|||||||
{ e_mode_all, "mode_all" },
|
{ e_mode_all, "mode_all" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
|
const struct YamlIdStr enum_BluetoothModes[] = {
|
||||||
|
{ BLUETOOTH_OFF, "OFF" },
|
||||||
|
{ BLUETOOTH_TELEMETRY, "TELEMETRY" },
|
||||||
|
{ BLUETOOTH_TRAINER, "TRAINER" },
|
||||||
|
{ BLUETOOTH_MAX, "MAX" },
|
||||||
|
{ 0, NULL }
|
||||||
|
};
|
||||||
const struct YamlIdStr enum_Functions[] = {
|
const struct YamlIdStr enum_Functions[] = {
|
||||||
{ FUNC_OVERRIDE_CHANNEL, "OVERRIDE_CHANNEL" },
|
{ FUNC_OVERRIDE_CHANNEL, "OVERRIDE_CHANNEL" },
|
||||||
{ FUNC_TRAINER, "TRAINER" },
|
{ FUNC_TRAINER, "TRAINER" },
|
||||||
@@ -57,6 +70,16 @@ const struct YamlIdStr enum_Functions[] = {
|
|||||||
{ FUNC_MAX, "MAX" },
|
{ FUNC_MAX, "MAX" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
|
const struct YamlIdStr enum_UartModes[] = {
|
||||||
|
{ UART_MODE_NONE, "MODE_NONE" },
|
||||||
|
{ UART_MODE_TELEMETRY_MIRROR, "MODE_TELEMETRY_MIRROR" },
|
||||||
|
{ UART_MODE_TELEMETRY, "MODE_TELEMETRY" },
|
||||||
|
{ UART_MODE_SBUS_TRAINER, "MODE_SBUS_TRAINER" },
|
||||||
|
{ UART_MODE_LUA, "MODE_LUA" },
|
||||||
|
{ UART_MODE_COUNT, "MODE_COUNT" },
|
||||||
|
{ UART_MODE_MAX, "MODE_MAX" },
|
||||||
|
{ 0, NULL }
|
||||||
|
};
|
||||||
const struct YamlIdStr enum_TimerModes[] = {
|
const struct YamlIdStr enum_TimerModes[] = {
|
||||||
{ TMRMODE_OFF, "OFF" },
|
{ TMRMODE_OFF, "OFF" },
|
||||||
{ TMRMODE_ON, "ON" },
|
{ TMRMODE_ON, "ON" },
|
||||||
@@ -71,7 +94,7 @@ const struct YamlIdStr enum_TimerModes[] = {
|
|||||||
const struct YamlIdStr enum_MixerMultiplex[] = {
|
const struct YamlIdStr enum_MixerMultiplex[] = {
|
||||||
{ MLTPX_ADD, "ADD" },
|
{ MLTPX_ADD, "ADD" },
|
||||||
{ MLTPX_MUL, "MUL" },
|
{ MLTPX_MUL, "MUL" },
|
||||||
{ MLTPX_REP, "REP" },
|
{ MLTPX_REPL, "REPL" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
const struct YamlIdStr enum_MixSources[] = {
|
const struct YamlIdStr enum_MixSources[] = {
|
||||||
@@ -204,6 +227,17 @@ const struct YamlIdStr enum_ModuleType[] = {
|
|||||||
{ MODULE_TYPE_MAX, "TYPE_MAX" },
|
{ MODULE_TYPE_MAX, "TYPE_MAX" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
|
const struct YamlIdStr enum_TrainerMode[] = {
|
||||||
|
{ TRAINER_MODE_MASTER_TRAINER_JACK, "MODE_MASTER_TRAINER_JACK" },
|
||||||
|
{ TRAINER_MODE_SLAVE, "MODE_SLAVE" },
|
||||||
|
{ TRAINER_MODE_MASTER_SBUS_EXTERNAL_MODULE, "MODE_MASTER_SBUS_EXTERNAL_MODULE" },
|
||||||
|
{ TRAINER_MODE_MASTER_CPPM_EXTERNAL_MODULE, "MODE_MASTER_CPPM_EXTERNAL_MODULE" },
|
||||||
|
{ TRAINER_MODE_MASTER_BATTERY_COMPARTMENT, "MODE_MASTER_BATTERY_COMPARTMENT" },
|
||||||
|
{ TRAINER_MODE_MASTER_BLUETOOTH, "MODE_MASTER_BLUETOOTH" },
|
||||||
|
{ TRAINER_MODE_SLAVE_BLUETOOTH, "MODE_SLAVE_BLUETOOTH" },
|
||||||
|
{ TRAINER_MODE_MULTI, "MODE_MULTI" },
|
||||||
|
{ 0, NULL }
|
||||||
|
};
|
||||||
|
|
||||||
//
|
//
|
||||||
// Structs last
|
// Structs last
|
||||||
@@ -224,7 +258,7 @@ static const struct YamlNode struct_signed_16[] = {
|
|||||||
static const struct YamlNode struct_TrainerMix[] = {
|
static const struct YamlNode struct_TrainerMix[] = {
|
||||||
YAML_IDX,
|
YAML_IDX,
|
||||||
YAML_UNSIGNED( "srcChn", 6 ),
|
YAML_UNSIGNED( "srcChn", 6 ),
|
||||||
YAML_UNSIGNED( "mode", 2 ),
|
YAML_ENUM("mode", 2, enum_TrainerMultiplex),
|
||||||
YAML_SIGNED( "studWeight", 8 ),
|
YAML_SIGNED( "studWeight", 8 ),
|
||||||
YAML_END
|
YAML_END
|
||||||
};
|
};
|
||||||
@@ -313,7 +347,7 @@ static const struct YamlNode struct_RadioData[] = {
|
|||||||
YAML_UNSIGNED( "backlightBright", 8 ),
|
YAML_UNSIGNED( "backlightBright", 8 ),
|
||||||
YAML_UNSIGNED( "globalTimer", 32 ),
|
YAML_UNSIGNED( "globalTimer", 32 ),
|
||||||
YAML_UNSIGNED( "bluetoothBaudrate", 4 ),
|
YAML_UNSIGNED( "bluetoothBaudrate", 4 ),
|
||||||
YAML_UNSIGNED( "bluetoothMode", 4 ),
|
YAML_ENUM("bluetoothMode", 4, enum_BluetoothModes),
|
||||||
YAML_UNSIGNED( "countryCode", 2 ),
|
YAML_UNSIGNED( "countryCode", 2 ),
|
||||||
YAML_SIGNED( "pwrOnSpeed", 3 ),
|
YAML_SIGNED( "pwrOnSpeed", 3 ),
|
||||||
YAML_SIGNED( "pwrOffSpeed", 3 ),
|
YAML_SIGNED( "pwrOffSpeed", 3 ),
|
||||||
@@ -332,7 +366,7 @@ static const struct YamlNode struct_RadioData[] = {
|
|||||||
YAML_SIGNED_CUST( "varioRange", 8, r_vPitch, w_vPitch ),
|
YAML_SIGNED_CUST( "varioRange", 8, r_vPitch, w_vPitch ),
|
||||||
YAML_SIGNED( "varioRepeat", 8 ),
|
YAML_SIGNED( "varioRepeat", 8 ),
|
||||||
YAML_ARRAY("customFn", 88, 64, struct_CustomFunctionData, cfn_is_active),
|
YAML_ARRAY("customFn", 88, 64, struct_CustomFunctionData, cfn_is_active),
|
||||||
YAML_UNSIGNED( "auxSerialMode", 4 ),
|
YAML_ENUM("auxSerialMode", 4, enum_UartModes),
|
||||||
YAML_ARRAY("slidersConfig", 1, 4, struct_sliderConfig, nullptr),
|
YAML_ARRAY("slidersConfig", 1, 4, struct_sliderConfig, nullptr),
|
||||||
YAML_ARRAY("potsConfig", 2, 4, struct_potConfig, nullptr),
|
YAML_ARRAY("potsConfig", 2, 4, struct_potConfig, nullptr),
|
||||||
YAML_UNSIGNED( "backlightColor", 8 ),
|
YAML_UNSIGNED( "backlightColor", 8 ),
|
||||||
@@ -594,7 +628,7 @@ static const struct YamlNode struct_ModuleData[] = {
|
|||||||
YAML_END
|
YAML_END
|
||||||
};
|
};
|
||||||
static const struct YamlNode struct_TrainerModuleData[] = {
|
static const struct YamlNode struct_TrainerModuleData[] = {
|
||||||
YAML_UNSIGNED( "mode", 8 ),
|
YAML_ENUM("mode", 8, enum_TrainerMode),
|
||||||
YAML_UNSIGNED( "channelsStart", 8 ),
|
YAML_UNSIGNED( "channelsStart", 8 ),
|
||||||
YAML_SIGNED( "channelsCount", 8 ),
|
YAML_SIGNED( "channelsCount", 8 ),
|
||||||
YAML_SIGNED( "frameLength", 8 ),
|
YAML_SIGNED( "frameLength", 8 ),
|
||||||
@@ -748,7 +782,7 @@ static const struct YamlNode struct_ModelData[] = {
|
|||||||
YAML_STRUCT("swashR", 64, struct_SwashRingData, NULL),
|
YAML_STRUCT("swashR", 64, struct_SwashRingData, NULL),
|
||||||
YAML_ARRAY("flightModeData", 288, 9, struct_FlightModeData, fmd_is_active),
|
YAML_ARRAY("flightModeData", 288, 9, struct_FlightModeData, fmd_is_active),
|
||||||
YAML_UNSIGNED( "thrTraceSrc", 8 ),
|
YAML_UNSIGNED( "thrTraceSrc", 8 ),
|
||||||
YAML_UNSIGNED( "switchWarningState", 16 ),
|
YAML_UNSIGNED_CUST( "switchWarningState", 16, r_swtchWarn, w_swtchWarn ),
|
||||||
YAML_UNSIGNED( "switchWarningEnable", 8 ),
|
YAML_UNSIGNED( "switchWarningEnable", 8 ),
|
||||||
YAML_ARRAY("gvars", 56, 9, struct_GVarData, NULL),
|
YAML_ARRAY("gvars", 56, 9, struct_GVarData, NULL),
|
||||||
YAML_STRUCT("varioData", 40, struct_VarioData, NULL),
|
YAML_STRUCT("varioData", 40, struct_VarioData, NULL),
|
||||||
@@ -777,7 +811,7 @@ static const struct YamlNode struct_PartialModel[] = {
|
|||||||
YAML_END
|
YAML_END
|
||||||
};
|
};
|
||||||
|
|
||||||
#define MAX_RADIODATA_MODELDATA_PARTIALMODEL_STR_LEN 24
|
#define MAX_RADIODATA_MODELDATA_PARTIALMODEL_STR_LEN 32
|
||||||
|
|
||||||
static const struct YamlNode __RadioData_root_node = YAML_ROOT( struct_RadioData );
|
static const struct YamlNode __RadioData_root_node = YAML_ROOT( struct_RadioData );
|
||||||
|
|
||||||
|
|||||||
@@ -21,6 +21,12 @@ const struct YamlIdStr enum_AntennaModes[] = {
|
|||||||
{ ANTENNA_MODE_LAST, "MODE_LAST" },
|
{ ANTENNA_MODE_LAST, "MODE_LAST" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
|
const struct YamlIdStr enum_TrainerMultiplex[] = {
|
||||||
|
{ TRAINER_OFF, "OFF" },
|
||||||
|
{ TRAINER_ADD, "ADD" },
|
||||||
|
{ TRAINER_REPL, "REPL" },
|
||||||
|
{ 0, NULL }
|
||||||
|
};
|
||||||
const struct YamlIdStr enum_BeeperMode[] = {
|
const struct YamlIdStr enum_BeeperMode[] = {
|
||||||
{ e_mode_quiet, "mode_quiet" },
|
{ e_mode_quiet, "mode_quiet" },
|
||||||
{ e_mode_alarms, "mode_alarms" },
|
{ e_mode_alarms, "mode_alarms" },
|
||||||
@@ -28,6 +34,13 @@ const struct YamlIdStr enum_BeeperMode[] = {
|
|||||||
{ e_mode_all, "mode_all" },
|
{ e_mode_all, "mode_all" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
|
const struct YamlIdStr enum_BluetoothModes[] = {
|
||||||
|
{ BLUETOOTH_OFF, "OFF" },
|
||||||
|
{ BLUETOOTH_TELEMETRY, "TELEMETRY" },
|
||||||
|
{ BLUETOOTH_TRAINER, "TRAINER" },
|
||||||
|
{ BLUETOOTH_MAX, "MAX" },
|
||||||
|
{ 0, NULL }
|
||||||
|
};
|
||||||
const struct YamlIdStr enum_Functions[] = {
|
const struct YamlIdStr enum_Functions[] = {
|
||||||
{ FUNC_OVERRIDE_CHANNEL, "OVERRIDE_CHANNEL" },
|
{ FUNC_OVERRIDE_CHANNEL, "OVERRIDE_CHANNEL" },
|
||||||
{ FUNC_TRAINER, "TRAINER" },
|
{ FUNC_TRAINER, "TRAINER" },
|
||||||
@@ -57,6 +70,16 @@ const struct YamlIdStr enum_Functions[] = {
|
|||||||
{ FUNC_MAX, "MAX" },
|
{ FUNC_MAX, "MAX" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
|
const struct YamlIdStr enum_UartModes[] = {
|
||||||
|
{ UART_MODE_NONE, "MODE_NONE" },
|
||||||
|
{ UART_MODE_TELEMETRY_MIRROR, "MODE_TELEMETRY_MIRROR" },
|
||||||
|
{ UART_MODE_TELEMETRY, "MODE_TELEMETRY" },
|
||||||
|
{ UART_MODE_SBUS_TRAINER, "MODE_SBUS_TRAINER" },
|
||||||
|
{ UART_MODE_LUA, "MODE_LUA" },
|
||||||
|
{ UART_MODE_COUNT, "MODE_COUNT" },
|
||||||
|
{ UART_MODE_MAX, "MODE_MAX" },
|
||||||
|
{ 0, NULL }
|
||||||
|
};
|
||||||
const struct YamlIdStr enum_TimerModes[] = {
|
const struct YamlIdStr enum_TimerModes[] = {
|
||||||
{ TMRMODE_OFF, "OFF" },
|
{ TMRMODE_OFF, "OFF" },
|
||||||
{ TMRMODE_ON, "ON" },
|
{ TMRMODE_ON, "ON" },
|
||||||
@@ -71,7 +94,7 @@ const struct YamlIdStr enum_TimerModes[] = {
|
|||||||
const struct YamlIdStr enum_MixerMultiplex[] = {
|
const struct YamlIdStr enum_MixerMultiplex[] = {
|
||||||
{ MLTPX_ADD, "ADD" },
|
{ MLTPX_ADD, "ADD" },
|
||||||
{ MLTPX_MUL, "MUL" },
|
{ MLTPX_MUL, "MUL" },
|
||||||
{ MLTPX_REP, "REP" },
|
{ MLTPX_REPL, "REPL" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
const struct YamlIdStr enum_MixSources[] = {
|
const struct YamlIdStr enum_MixSources[] = {
|
||||||
@@ -206,6 +229,17 @@ const struct YamlIdStr enum_ModuleType[] = {
|
|||||||
{ MODULE_TYPE_MAX, "TYPE_MAX" },
|
{ MODULE_TYPE_MAX, "TYPE_MAX" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
|
const struct YamlIdStr enum_TrainerMode[] = {
|
||||||
|
{ TRAINER_MODE_MASTER_TRAINER_JACK, "MODE_MASTER_TRAINER_JACK" },
|
||||||
|
{ TRAINER_MODE_SLAVE, "MODE_SLAVE" },
|
||||||
|
{ TRAINER_MODE_MASTER_SBUS_EXTERNAL_MODULE, "MODE_MASTER_SBUS_EXTERNAL_MODULE" },
|
||||||
|
{ TRAINER_MODE_MASTER_CPPM_EXTERNAL_MODULE, "MODE_MASTER_CPPM_EXTERNAL_MODULE" },
|
||||||
|
{ TRAINER_MODE_MASTER_BATTERY_COMPARTMENT, "MODE_MASTER_BATTERY_COMPARTMENT" },
|
||||||
|
{ TRAINER_MODE_MASTER_BLUETOOTH, "MODE_MASTER_BLUETOOTH" },
|
||||||
|
{ TRAINER_MODE_SLAVE_BLUETOOTH, "MODE_SLAVE_BLUETOOTH" },
|
||||||
|
{ TRAINER_MODE_MULTI, "MODE_MULTI" },
|
||||||
|
{ 0, NULL }
|
||||||
|
};
|
||||||
|
|
||||||
//
|
//
|
||||||
// Structs last
|
// Structs last
|
||||||
@@ -226,7 +260,7 @@ static const struct YamlNode struct_signed_16[] = {
|
|||||||
static const struct YamlNode struct_TrainerMix[] = {
|
static const struct YamlNode struct_TrainerMix[] = {
|
||||||
YAML_IDX,
|
YAML_IDX,
|
||||||
YAML_UNSIGNED( "srcChn", 6 ),
|
YAML_UNSIGNED( "srcChn", 6 ),
|
||||||
YAML_UNSIGNED( "mode", 2 ),
|
YAML_ENUM("mode", 2, enum_TrainerMultiplex),
|
||||||
YAML_SIGNED( "studWeight", 8 ),
|
YAML_SIGNED( "studWeight", 8 ),
|
||||||
YAML_END
|
YAML_END
|
||||||
};
|
};
|
||||||
@@ -315,7 +349,7 @@ static const struct YamlNode struct_RadioData[] = {
|
|||||||
YAML_UNSIGNED( "backlightBright", 8 ),
|
YAML_UNSIGNED( "backlightBright", 8 ),
|
||||||
YAML_UNSIGNED( "globalTimer", 32 ),
|
YAML_UNSIGNED( "globalTimer", 32 ),
|
||||||
YAML_UNSIGNED( "bluetoothBaudrate", 4 ),
|
YAML_UNSIGNED( "bluetoothBaudrate", 4 ),
|
||||||
YAML_UNSIGNED( "bluetoothMode", 4 ),
|
YAML_ENUM("bluetoothMode", 4, enum_BluetoothModes),
|
||||||
YAML_UNSIGNED( "countryCode", 2 ),
|
YAML_UNSIGNED( "countryCode", 2 ),
|
||||||
YAML_SIGNED( "pwrOnSpeed", 3 ),
|
YAML_SIGNED( "pwrOnSpeed", 3 ),
|
||||||
YAML_SIGNED( "pwrOffSpeed", 3 ),
|
YAML_SIGNED( "pwrOffSpeed", 3 ),
|
||||||
@@ -334,7 +368,7 @@ static const struct YamlNode struct_RadioData[] = {
|
|||||||
YAML_SIGNED_CUST( "varioRange", 8, r_vPitch, w_vPitch ),
|
YAML_SIGNED_CUST( "varioRange", 8, r_vPitch, w_vPitch ),
|
||||||
YAML_SIGNED( "varioRepeat", 8 ),
|
YAML_SIGNED( "varioRepeat", 8 ),
|
||||||
YAML_ARRAY("customFn", 88, 64, struct_CustomFunctionData, cfn_is_active),
|
YAML_ARRAY("customFn", 88, 64, struct_CustomFunctionData, cfn_is_active),
|
||||||
YAML_UNSIGNED( "auxSerialMode", 4 ),
|
YAML_ENUM("auxSerialMode", 4, enum_UartModes),
|
||||||
YAML_ARRAY("slidersConfig", 1, 4, struct_sliderConfig, nullptr),
|
YAML_ARRAY("slidersConfig", 1, 4, struct_sliderConfig, nullptr),
|
||||||
YAML_ARRAY("potsConfig", 2, 4, struct_potConfig, nullptr),
|
YAML_ARRAY("potsConfig", 2, 4, struct_potConfig, nullptr),
|
||||||
YAML_UNSIGNED( "backlightColor", 8 ),
|
YAML_UNSIGNED( "backlightColor", 8 ),
|
||||||
@@ -598,7 +632,7 @@ static const struct YamlNode struct_ModuleData[] = {
|
|||||||
YAML_END
|
YAML_END
|
||||||
};
|
};
|
||||||
static const struct YamlNode struct_TrainerModuleData[] = {
|
static const struct YamlNode struct_TrainerModuleData[] = {
|
||||||
YAML_UNSIGNED( "mode", 8 ),
|
YAML_ENUM("mode", 8, enum_TrainerMode),
|
||||||
YAML_UNSIGNED( "channelsStart", 8 ),
|
YAML_UNSIGNED( "channelsStart", 8 ),
|
||||||
YAML_SIGNED( "channelsCount", 8 ),
|
YAML_SIGNED( "channelsCount", 8 ),
|
||||||
YAML_SIGNED( "frameLength", 8 ),
|
YAML_SIGNED( "frameLength", 8 ),
|
||||||
@@ -752,7 +786,7 @@ static const struct YamlNode struct_ModelData[] = {
|
|||||||
YAML_STRUCT("swashR", 64, struct_SwashRingData, NULL),
|
YAML_STRUCT("swashR", 64, struct_SwashRingData, NULL),
|
||||||
YAML_ARRAY("flightModeData", 288, 9, struct_FlightModeData, fmd_is_active),
|
YAML_ARRAY("flightModeData", 288, 9, struct_FlightModeData, fmd_is_active),
|
||||||
YAML_UNSIGNED( "thrTraceSrc", 8 ),
|
YAML_UNSIGNED( "thrTraceSrc", 8 ),
|
||||||
YAML_UNSIGNED( "switchWarningState", 16 ),
|
YAML_UNSIGNED_CUST( "switchWarningState", 16, r_swtchWarn, w_swtchWarn ),
|
||||||
YAML_UNSIGNED( "switchWarningEnable", 8 ),
|
YAML_UNSIGNED( "switchWarningEnable", 8 ),
|
||||||
YAML_ARRAY("gvars", 56, 9, struct_GVarData, NULL),
|
YAML_ARRAY("gvars", 56, 9, struct_GVarData, NULL),
|
||||||
YAML_STRUCT("varioData", 40, struct_VarioData, NULL),
|
YAML_STRUCT("varioData", 40, struct_VarioData, NULL),
|
||||||
@@ -781,7 +815,7 @@ static const struct YamlNode struct_PartialModel[] = {
|
|||||||
YAML_END
|
YAML_END
|
||||||
};
|
};
|
||||||
|
|
||||||
#define MAX_RADIODATA_MODELDATA_PARTIALMODEL_STR_LEN 24
|
#define MAX_RADIODATA_MODELDATA_PARTIALMODEL_STR_LEN 32
|
||||||
|
|
||||||
static const struct YamlNode __RadioData_root_node = YAML_ROOT( struct_RadioData );
|
static const struct YamlNode __RadioData_root_node = YAML_ROOT( struct_RadioData );
|
||||||
|
|
||||||
|
|||||||
@@ -789,12 +789,12 @@ TEST_F(MixerTest, flightModeTransition)
|
|||||||
g_model.flightModeData[1].fadeIn = 100;
|
g_model.flightModeData[1].fadeIn = 100;
|
||||||
g_model.flightModeData[1].fadeOut = 100;
|
g_model.flightModeData[1].fadeOut = 100;
|
||||||
g_model.mixData[0].destCh = 0;
|
g_model.mixData[0].destCh = 0;
|
||||||
g_model.mixData[0].mltpx = MLTPX_REP;
|
g_model.mixData[0].mltpx = MLTPX_REPL;
|
||||||
g_model.mixData[0].srcRaw = MIXSRC_MAX;
|
g_model.mixData[0].srcRaw = MIXSRC_MAX;
|
||||||
g_model.mixData[0].flightModes = 0b11110;
|
g_model.mixData[0].flightModes = 0b11110;
|
||||||
g_model.mixData[0].weight = 100;
|
g_model.mixData[0].weight = 100;
|
||||||
g_model.mixData[1].destCh = 0;
|
g_model.mixData[1].destCh = 0;
|
||||||
g_model.mixData[1].mltpx = MLTPX_REP;
|
g_model.mixData[1].mltpx = MLTPX_REPL;
|
||||||
g_model.mixData[1].srcRaw = MIXSRC_MAX;
|
g_model.mixData[1].srcRaw = MIXSRC_MAX;
|
||||||
g_model.mixData[1].flightModes = 0b11101;
|
g_model.mixData[1].flightModes = 0b11101;
|
||||||
g_model.mixData[1].weight = -10;
|
g_model.mixData[1].weight = -10;
|
||||||
@@ -813,7 +813,7 @@ TEST_F(MixerTest, flightModeOverflow)
|
|||||||
g_model.flightModeData[0].fadeIn = 100;
|
g_model.flightModeData[0].fadeIn = 100;
|
||||||
g_model.flightModeData[0].fadeOut = 100;
|
g_model.flightModeData[0].fadeOut = 100;
|
||||||
g_model.mixData[0].destCh = 0;
|
g_model.mixData[0].destCh = 0;
|
||||||
g_model.mixData[0].mltpx = MLTPX_REP;
|
g_model.mixData[0].mltpx = MLTPX_REPL;
|
||||||
g_model.mixData[0].srcRaw = MIXSRC_MAX;
|
g_model.mixData[0].srcRaw = MIXSRC_MAX;
|
||||||
g_model.mixData[0].flightModes = 0;
|
g_model.mixData[0].flightModes = 0;
|
||||||
g_model.mixData[0].weight = 250;
|
g_model.mixData[0].weight = 250;
|
||||||
|
|||||||
Reference in New Issue
Block a user