asdf
Dependencies: KellerDruck_pressure PID PWM-Coil-driver Sensirion_SF04 VL6180
Fork of TestBenchSerenity-proto_F429ZI by
Diff: main.h
- Revision:
- 1:d58df8cb271d
- Parent:
- 0:67debf2ccbc2
- Child:
- 3:9ff79ea3a294
--- a/main.h Fri Jul 07 20:52:31 2017 +0000 +++ b/main.h Thu Jul 20 20:45:27 2017 +0000 @@ -6,6 +6,11 @@ #include "sensirion_sf04.h" #include "PID.h" #include "coil-driver.h" +#include "VL6180.h" + +Coil shutoff(PE_5, 5000, 40, 6); // Shutoff valve driven by pin PE_12, 5ms spike time, 25kHz PWM at 15% duty cycle +//Coil injector(PE_14, 200, 40, 3); // Injector valve driven by pin PE_14, 200us spike time, 25kHz PWM at 7.5% duty cycle + // Mbed application shield display #include "C12832A1Z.h" @@ -40,7 +45,7 @@ #define pumpCtrlPin PE_10 // Pump control (white wire) // End Liquid pump defines -Thread print_process_values_t, update_pressures_t, update_airflow_t, update_lcd_t; +Thread print_process_values_t, update_pressures_t, update_airflow_t, update_level_t, update_lcd_t, update_shutoff_t; Mutex i2c1_m, i2c2_m, stdio_m; //DigitalOut myled(LED2); @@ -81,4 +86,8 @@ PwmOut ledRed(PE_11); PwmOut ledGrn(PD_15); DigitalOut ledBlu(PF_12); + +// Level sensor +VL6180 level(i2c1); //I2C object +float agentlevel = 0; #endif \ No newline at end of file