Searched refs:ppm (Results 1 – 1 of 1) sorted by relevance
81 double ppm = 0; in Mq2GetPpm() local88 (void)memset_s(&ppm, sizeof(ppm), 0x0, sizeof(ppm)); in Mq2GetPpm()95 ppm = pow(X_CONSTANT_2 * vol / (VOILTAGE_5_V - vol), 1.0 / Y_CONSTANT_2); /* 计算ppm */ in Mq2GetPpm()96 if (ppm < PPM_THRESHOLD_300) { /* 排除空气中其他气体的干扰 */ in Mq2GetPpm()97 ppm = 0; in Mq2GetPpm()100 if (ppm > PPM_THRESHOLD_3000) { /* 当ppm 大于3000时,蜂鸣器报警 */ in Mq2GetPpm()112 FloatToString(ppm, combGas.g_ahu20GasBuff); in Mq2GetPpm()113 return ppm; in Mq2GetPpm()