Added Linear ecuation on test algorithm

This commit is contained in:
miguel5612
2020-03-28 12:58:25 -05:00
parent ab77a7a4d7
commit 70fbaa9115
3 changed files with 11 additions and 4 deletions

View File

@ -37,7 +37,7 @@ void setup() {
Serial.begin(9600); //Init serial port
//Set math model to calculate the PPM concentration and the value of constants
MQ4.setRegressionMethod(0); //_PPM = a*ratio + b
MQ4.setRegressionMethod(0); //_PPM = pow(10, (log10(ratio)-b)/a)