fix(cpn): Radio settings yaml for adc refactor (#3862)
* Remove commented lines * Restrict calibration to sticks, pots and sliders * Fix pots and sliders config to support pre and post adc refactor * fix: pfeerick sucks at rebases * chore: Add more bits missed during rebase * chore(cpn): use adc version constant * fix(cpn): calibration encode mapping --------- Co-authored-by: elecpower <neilh713@tpg.com.au>
This commit is contained in:
co-authored by
elecpower
parent
1177891750
commit
50bbea48bd
@@ -300,6 +300,7 @@ class Firmware
|
||||
downloadId(downloadId),
|
||||
simulatorId(simulatorId),
|
||||
analogInputNamesLookupTable(Boards::getAnalogNamesLookupTable(board)),
|
||||
analogInputNamesLookupTableADC(Boards::getAnalogNamesLookupTable(board, QString(CPN_ADC_REFACTOR_VERSION))),
|
||||
switchesLookupTable(Boards::getSwitchesLookupTable(board)),
|
||||
trimSwitchesLookupTable(Boards::getTrimSwitchesLookupTable(board)),
|
||||
trimSourcesLookupTable(Boards::getTrimSourcesLookupTable(board)),
|
||||
@@ -426,7 +427,12 @@ class Firmware
|
||||
return &analogInputNamesLookupTable;
|
||||
}
|
||||
|
||||
STRINGTAGMAPPINGFUNCS(analogInputNamesLookupTable, AnalogInput);
|
||||
const StringTagMappingTable* getAnalogIndexNamesLookupTableADC()
|
||||
{
|
||||
return &analogInputNamesLookupTableADC;
|
||||
}
|
||||
|
||||
STRINGTAGMAPPINGFUNCS_ADC(analogInputNamesLookupTable, analogInputNamesLookupTableADC, AnalogInput);
|
||||
STRINGTAGMAPPINGFUNCS(switchesLookupTable, Switches);
|
||||
STRINGTAGMAPPINGFUNCS(trimSwitchesLookupTable, TrimSwitches);
|
||||
STRINGTAGMAPPINGFUNCS(trimSourcesLookupTable, TrimSources);
|
||||
@@ -449,6 +455,7 @@ class Firmware
|
||||
|
||||
// used by YAML encode and decode
|
||||
const StringTagMappingTable analogInputNamesLookupTable;
|
||||
const StringTagMappingTable analogInputNamesLookupTableADC;
|
||||
const StringTagMappingTable switchesLookupTable;
|
||||
const StringTagMappingTable trimSwitchesLookupTable;
|
||||
const StringTagMappingTable trimSourcesLookupTable;
|
||||
|
||||
Reference in New Issue
Block a user