Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: KellerDruck_pressure PID PWM-Coil-driver Sensirion_SF04 VL6180
Fork of HSPFLOW1 by
Diff: main.cpp
- Revision:
- 6:c20cf19f7d9b
- Parent:
- 5:8e47d5323647
- Child:
- 7:fb77fbe65357
--- 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);
+
}
}
