feat: Model level ADC Jitter filter option (#1363)
* ADC Filter - On/off state configurable at the model level * Updated YAML configuration to match change from ADC Filter feature commit * Companion changes to support ADC jitter filter to be a model configuration item. * Renamed jitterFilter field to noJitterFilter. This better describes the semantic, which is inverted. * Updated after review * Re-run generate-yaml * Changed ADC Jitter filter control on Model to be tri state. Off, On or use the radio setting * Adde NOBACKUP() to the added field * Re-generate yaml_datastructs * Making the default state to use radio setting/Global value * Updated after review: Changing to more consistent naming across firmware and companion. * Reverted files that was accidently added to the commit. Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
This commit is contained in:
co-authored by
Peter Feerick
parent
09980bf640
commit
c3c8a2e3f1
@@ -646,6 +646,7 @@ PACK(struct ModelData {
|
||||
uint8_t extendedLimits:1;
|
||||
uint8_t extendedTrims:1;
|
||||
uint8_t throttleReversed:1;
|
||||
|
||||
BeepANACenter beepANACenter;
|
||||
MixData mixData[MAX_MIXERS] NO_IDX;
|
||||
LimitData limitData[MAX_OUTPUT_CHANNELS];
|
||||
@@ -676,6 +677,9 @@ PACK(struct ModelData {
|
||||
uint8_t thrTrimSw:3;
|
||||
uint8_t potsWarnMode:2 ENUM(PotsWarnMode);
|
||||
|
||||
NOBACKUP(uint8_t jitterFilter:2 ENUM(ModelOverridableEnable));
|
||||
uint8_t spare2:6 SKIP;
|
||||
|
||||
ModuleData moduleData[NUM_MODULES];
|
||||
int16_t failsafeChannels[MAX_OUTPUT_CHANNELS];
|
||||
TrainerModuleData trainerData;
|
||||
@@ -885,7 +889,7 @@ PACK(struct RadioData {
|
||||
NOBACKUP(int8_t pwrOnSpeed:3);
|
||||
NOBACKUP(int8_t pwrOffSpeed:3);
|
||||
NOBACKUP(uint8_t imperial:1);
|
||||
NOBACKUP(uint8_t jitterFilter:1); /* 0 - active */
|
||||
NOBACKUP(uint8_t noJitterFilter:1); /* 0 - Jitter filter active */
|
||||
NOBACKUP(uint8_t disableRssiPoweroffAlarm:1);
|
||||
NOBACKUP(uint8_t USBMode:2);
|
||||
NOBACKUP(uint8_t jackMode:2);
|
||||
|
||||
Reference in New Issue
Block a user