feat(tx16s): default calibration for 6POS (#5827)
This commit is contained in:
@@ -419,6 +419,15 @@ void generalDefault()
|
||||
g_eeGeneral.hatsMode = HATSMODE_SWITCHABLE;
|
||||
#endif
|
||||
|
||||
#if defined(DEFAULT_6POS_CALIB)
|
||||
uint8_t defaultCalib[] = DEFAULT_6POS_CALIB;
|
||||
StepsCalibData* calib = (StepsCalibData*)&g_eeGeneral.calib[DEFAULT_6POS_IDX];
|
||||
|
||||
for (int i = 0; i < 5; i++) {
|
||||
calib->steps[i] = defaultCalib[i];
|
||||
}
|
||||
#endif
|
||||
|
||||
g_eeGeneral.chkSum = 0xFFFF;
|
||||
}
|
||||
|
||||
|
||||
@@ -572,6 +572,11 @@
|
||||
#error "Missing ADC_DIRECTION array"
|
||||
#endif
|
||||
|
||||
#if defined(RADIO_TX16S)
|
||||
#define DEFAULT_6POS_CALIB {3, 12, 21, 30, 38}
|
||||
#define DEFAULT_6POS_IDX 5
|
||||
#endif
|
||||
|
||||
|
||||
// Power
|
||||
#if defined(RADIO_T18)
|
||||
|
||||
@@ -1832,6 +1832,11 @@
|
||||
#define ADC_DIRECTION {1,-1,-1,1, -1,1, 1, 1}
|
||||
#endif
|
||||
|
||||
#if defined(RADIO_BOXER)
|
||||
#define DEFAULT_6POS_CALIB {5, 13, 22, 31, 40}
|
||||
#define DEFAULT_6POS_IDX 6
|
||||
#endif
|
||||
|
||||
// PWR and LED driver
|
||||
|
||||
#if defined(PCBX9LITE)
|
||||
|
||||
Reference in New Issue
Block a user