update BOARDs calibration data.

This commit is contained in:
YiChin
2020-07-29 09:57:02 +08:00
parent cbad40dc5a
commit afd9ac1223
@@ -1856,23 +1856,23 @@ struct _correction{
#ifdef BOARD_7A7A
{
.ADC_volt.coeff = (-6239226),
.ADC_volt.offset = 101648416123,
.ADC_volt.coeff = (-6238290),
.ADC_volt.offset = 101640702524,
.ADC_current[0].coeff = 31320381,
.ADC_current[0].offset = (-509857479468),
.ADC_current[0].coeff = 31311588,
.ADC_current[0].offset = (-509753111153),
.ADC_current[1].coeff = 1041193357,
.ADC_current[1].offset = (-16950619055581),
.ADC_current[1].coeff = 1038809417,
.ADC_current[1].offset = (-16910594805423),
.ADC_current[2].coeff = 31443823365,
.ADC_current[2].offset = (-511929468346784),
.ADC_current[2].coeff = 31046403466,
.ADC_current[2].offset = (-505503276105197),
.DAC2RealV.coeff = (-10582033),
.DAC2RealV.offset = 564855987100,
.DAC2RealV.coeff = (-10580571),
.DAC2RealV.offset = 564850587029,
.Usercode2DAC.coeff = (-10582033),
.Usercode2DAC.offset = 564855987100,
.Usercode2DAC.coeff = (-10580571),
.Usercode2DAC.offset = 564850587029,
.Gain0Boundary[0] = 0x5ECD,
.Gain0Boundary[1] = 0x5F0D,
@@ -2080,23 +2080,23 @@ struct _correction{
#ifdef BOARD_7C13
{
.ADC_volt.coeff = (-6245027),
.ADC_volt.offset = 101669958879,
.ADC_volt.coeff = (-6245031),
.ADC_volt.offset = 101664896458,
.ADC_current[0].coeff = 31035920,
.ADC_current[0].offset = (-505201713431),
.ADC_current[0].coeff = 31037865,
.ADC_current[0].offset = (-504943377203),
.ADC_current[1].coeff = 1042549550,
.ADC_current[1].offset = (-16963149966853),
.ADC_current[1].coeff = 1042483218,
.ADC_current[1].offset = (-16959178666094),
.ADC_current[2].coeff = 31216518956,
.ADC_current[2].offset = (-507929182679457),
.ADC_current[2].coeff = 31210947750,
.ADC_current[2].offset = (-507797633947551),
.DAC2RealV.coeff = (-10536388),
.DAC2RealV.offset = 562238536084,
.DAC2RealV.coeff = (-10540354),
.DAC2RealV.offset = 562115166023,
.Usercode2DAC.coeff = (-10536388),
.Usercode2DAC.offset = 562238536084,
.Usercode2DAC.coeff = (-10540354),
.Usercode2DAC.offset = 562115166023,
.Gain0Boundary[0] = 0x5ECD,
.Gain0Boundary[1] = 0x5F0D,
@@ -2217,6 +2217,8 @@ struct _correction{
.Gain1Boundary[1] = 0x64DD
};
#endif
// this function turn ADC measure value (0xXXXX) into real voltage
// unit should be uV
static int32_t DecodeADCVolt(uint16_t ADC_measure){