POC Breath using SMD commercial sensors

Dependencies:   iAQ_Core Adafruit_SGP30_mbed mbed BME680

Revision:
7:f37620a76a1d
Parent:
6:f6faf142e5fc
--- a/flow.h	Fri May 01 11:58:59 2020 +0000
+++ b/flow.h	Fri May 29 15:41:58 2020 +0000
@@ -50,8 +50,8 @@
         if (flag==1)
         {
           FPressure=P1-fp;
-          finalflow=(0.1724*sqrt(FPressure))+0.1637; //flow in litter per second, recalibrated at Imperial
-            if(isnan(finalflow)==true){
+          finalflow=(0.0649*sqrt(FPressure))-0.3256; 
+            if(isnan(finalflow)==true ||finalflow<0){
                 return 0;
                 }
           else{