jj

Dependencies:   KellerDruck_pressure PID PWM-Coil-driver Sensirion_SF04 VL6180

Fork of HSPFLOW by Ian Wolf

Files at this revision

API Documentation at this revision

Comitter:
212600191
Date:
Wed Aug 02 18:22:09 2017 +0000
Parent:
5:8e47d5323647
Commit message:
hjjkl

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Tue Aug 01 14:48:01 2017 +0000
+++ b/main.cpp	Wed Aug 02 18:22:09 2017 +0000
@@ -3,17 +3,19 @@
       
 int main()
 {
-    pc.baud(250000);
-    t1.start();
-    pc.printf("Serenity Starting up...\n\r");
+    pc.baud(115200);
+    //t1.start();
+    //pc.printf("Serenity Starting up...");
    while (true) {
-        float t= t1.read_ms();
+        //float t= t1.read_ms();
         High_Speed_Pressure = analog_value.read(); // 
-        High_Speed_Pressure = High_Speed_Pressure*100*(14.69/8.6); // Calibrate value to 1atm
-        mainflow.Measure(FLOW);
-        pc.printf("%.02f %.02f\r\n", High_Speed_Pressure, t);
+       High_Speed_Pressure = High_Speed_Pressure*100*(14.69/8.6); // Calibrate value to 1atm
+        //mainflow.Measure(FLOW);
+        pc.printf("%.02f\n", High_Speed_Pressure);
+        //pc.printf("Hello\r");
         //pc.printf("%0.02fpsi raw: %u %.02f", High_Speed_Pressure, mainflow.flow.u16, t);*/
-            
+        wait(.0001);
+          
     }
 }