Skip to content

Commit

Permalink
Update HelloSensor.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
abcdaaaaaaaaa committed Jul 3, 2024
1 parent d8db02f commit 5064e04
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions HelloSensor/HelloSensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -301,18 +301,18 @@ alcohol| 34.1956 | -0.2666
CO | 30.3019 | -0.2336
*/

//**************************************MQ-309A-Low-Sensitivity-FOR-CO**************************************
//**************************************MQ-307A & MQ-309A-Low-Sensitivity-FOR-CO**************************************

float HelloSensor::MQ309ADataLowCO(){_va = 2081.7244;_vb = -1.6974;return limitValue1000(readValue());}
float HelloSensor::MQ309ADataSecondH2(){_va = 27540.4616;_vb = -0.8421;return limitValue3000(readValue());}
float HelloSensor::MQ307ADataCO(){_va = 2336.2698;_vb = -1.7255;return limitValue1000(readValue());}
float HelloSensor::MQ307ADataH2(){_va = 25051.8177;_vb = -0.8318;return limitValue3000(readValue());}

// for old curve: float HelloSensor::MQ309ADataSecondH2(){_va = 27540.4616;_vb = -0.8421;return limitValue3000(readValue());}
// for new curve: float HelloSensor::MQ309ADataSecondH2(){_va = 28764.2815;_vb = -0.8485;return limitValue3000(readValue());}
// for old curve: float MQSpaceData::MQ307ADataH2(){_va = 25051.8177;_vb = -0.8318;return limitValue3000(readValue());}
// for new curve: float MQSpaceData::MQ307ADataH2(){_va = 24759.2442;_vb = -0.8301;return limitValue3000(readValue());}

/*
Gas | a | b
CO | 2081.7244| -1.6974
H2 | 28764.2815| -0.8485
Gas | a | b
CO | 2336.2698 | -1.7255
H2 | 24759.2442| -0.8301
*/

GeigerCounterPin::GeigerCounterPin(byte pin2, int LOG_PERIOD1)
Expand Down

0 comments on commit 5064e04

Please sign in to comment.