[cali] add BOARD_30 calibration data.

This commit is contained in:
ROY
2022-12-20 18:12:40 +08:00
parent 0667c9397f
commit a17bd344af
@@ -2587,6 +2587,40 @@ struct correction_ctx_t Correction = {
};
#endif
#ifdef BOARD_30
struct correction_ctx_t Correction = {
.ADC_volt[0].coeff = 6192,
.ADC_volt[0].offset = (-101325473),
.ADC_volt[1].coeff = 213222,
.ADC_volt[1].offset = (-3488594513),
.ADC_volt[2].coeff = 6204761,
.ADC_volt[2].offset = (-101492930405),
.ADC_current[0].coeff = 3125901,
.ADC_current[0].offset = (-50933571693),
.ADC_current[1].coeff = 71688255,
.ADC_current[1].offset = (-1168127344789),
.ADC_current[2].coeff = 1453189223,
.ADC_current[2].offset = (-23677501714303),
.ADC_current[3].coeff = 30557055266,
.ADC_current[3].offset = (-497913600274073),
.Usercode2DAC[0].coeff = (-10508180),
.Usercode2DAC[0].offset = 580911728121,
.Usercode2DAC[1].coeff = (-178285026),
.Usercode2DAC[1].offset = 4775944030805,
.ADC_Vout_volt[0].coeff = (-6252740),
.ADC_Vout_volt[0].offset = 101371524241,
};
#endif
int32_t DecodeADCValue(uint8_t adc_gain, uint8_t adc_channel, uint16_t adc_rxbuf);
uint16_t Usercode_Correction_to_DAC(uint8_t dac_gain, uint16_t usercode);