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
main.cpp@5:8e47d5323647, 2017-08-01 (annotated)
- Committer:
- iwolf32
- Date:
- Tue Aug 01 14:48:01 2017 +0000
- Revision:
- 5:8e47d5323647
- Parent:
- 4:79b23d1fbcd1
- Child:
- 6:c20cf19f7d9b
REV1;
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| dmwahl | 0:67debf2ccbc2 | 1 | #include "main.h" |
| iwolf32 | 4:79b23d1fbcd1 | 2 | |
| iwolf32 | 5:8e47d5323647 | 3 | |
| iwolf32 | 5:8e47d5323647 | 4 | int main() |
| dmwahl | 0:67debf2ccbc2 | 5 | { |
| iwolf32 | 5:8e47d5323647 | 6 | pc.baud(250000); |
| iwolf32 | 5:8e47d5323647 | 7 | t1.start(); |
| iwolf32 | 5:8e47d5323647 | 8 | pc.printf("Serenity Starting up...\n\r"); |
| iwolf32 | 5:8e47d5323647 | 9 | while (true) { |
| iwolf32 | 5:8e47d5323647 | 10 | float t= t1.read_ms(); |
| iwolf32 | 5:8e47d5323647 | 11 | High_Speed_Pressure = analog_value.read(); // |
| iwolf32 | 5:8e47d5323647 | 12 | High_Speed_Pressure = High_Speed_Pressure*100*(14.69/8.6); // Calibrate value to 1atm |
| iwolf32 | 5:8e47d5323647 | 13 | mainflow.Measure(FLOW); |
| iwolf32 | 5:8e47d5323647 | 14 | pc.printf("%.02f %.02f\r\n", High_Speed_Pressure, t); |
| iwolf32 | 5:8e47d5323647 | 15 | //pc.printf("%0.02fpsi raw: %u %.02f", High_Speed_Pressure, mainflow.flow.u16, t);*/ |
| iwolf32 | 5:8e47d5323647 | 16 | |
| dmwahl | 0:67debf2ccbc2 | 17 | } |
| dmwahl | 0:67debf2ccbc2 | 18 | } |
| dmwahl | 0:67debf2ccbc2 | 19 |
