This commit is contained in:
rice103 2022-01-23 17:28:13 +01:00
parent 37a77ef309
commit 496de57c07
1 changed files with 11 additions and 11 deletions

View File

@ -728,26 +728,26 @@ void CmndAdcParam(void) {
if (Adc[idx].param1==2) if (Adc[idx].param1==2)
{ {
a=574.25; a=574.25;
b=-2.222 b=-2.222;
ratioMQCleanAir=9.83 ratioMQCleanAir=9.83;
} }
if (Adc[idx].param1==4) if (Adc[idx].param1==4)
{ {
a=1012.7 a=1012.7;
b=-2.786 b=-2.786;
ratioMQCleanAir=4.4 ratioMQCleanAir=4.4;
} }
if (Adc[idx].param1==7) if (Adc[idx].param1==7)
{ {
a=99.042 a=99.042;
b=-1.518 b=-1.518;
ratioMQCleanAir=27.5 ratioMQCleanAir=27.5;
} }
if (Adc[idx].param1==131) if (Adc[idx].param1==131)
{ {
a=23.943 a=23.943;
b=-1.11 b=-1.11;
ratioMQCleanAir=15 ratioMQCleanAir=15;
} }
} }
Adc[idx].param2 = (int)(a * ANALOG_MQ_DECIMAL_MULTIPLIER); // Exponential regression Adc[idx].param2 = (int)(a * ANALOG_MQ_DECIMAL_MULTIPLIER); // Exponential regression