pressures
Dependencies: KellerDruck_pressure PID PWM-Coil-driver Sensirion_SF04 VL6180
Fork of HSPFLOW by
main.cpp@6:c20cf19f7d9b, 2017-08-02 (annotated)
- Committer:
- 212600191
- Date:
- Wed Aug 02 18:22:09 2017 +0000
- Revision:
- 6:c20cf19f7d9b
- Parent:
- 5:8e47d5323647
- Child:
- 7:fb77fbe65357
hjjkl
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 | { |
212600191 | 6:c20cf19f7d9b | 6 | pc.baud(115200); |
212600191 | 6:c20cf19f7d9b | 7 | //t1.start(); |
212600191 | 6:c20cf19f7d9b | 8 | //pc.printf("Serenity Starting up..."); |
iwolf32 | 5:8e47d5323647 | 9 | while (true) { |
212600191 | 6:c20cf19f7d9b | 10 | //float t= t1.read_ms(); |
iwolf32 | 5:8e47d5323647 | 11 | High_Speed_Pressure = analog_value.read(); // |
212600191 | 6:c20cf19f7d9b | 12 | High_Speed_Pressure = High_Speed_Pressure*100*(14.69/8.6); // Calibrate value to 1atm |
212600191 | 6:c20cf19f7d9b | 13 | //mainflow.Measure(FLOW); |
212600191 | 6:c20cf19f7d9b | 14 | pc.printf("%.02f\n", High_Speed_Pressure); |
212600191 | 6:c20cf19f7d9b | 15 | //pc.printf("Hello\r"); |
iwolf32 | 5:8e47d5323647 | 16 | //pc.printf("%0.02fpsi raw: %u %.02f", High_Speed_Pressure, mainflow.flow.u16, t);*/ |
212600191 | 6:c20cf19f7d9b | 17 | wait(.0001); |
212600191 | 6:c20cf19f7d9b | 18 | |
dmwahl | 0:67debf2ccbc2 | 19 | } |
dmwahl | 0:67debf2ccbc2 | 20 | } |
dmwahl | 0:67debf2ccbc2 | 21 |