Kabuki Starship / Mbed 2 deprecated GHVentilator

Dependencies:   mbed SickBayTek

Revision:
5:da629056644f
Parent:
4:de69851cf725
Child:
6:b2672da545f1
--- a/GHVentilatorChannel.h	Wed Apr 08 11:28:42 2020 +0000
+++ b/GHVentilatorChannel.h	Wed Apr 08 12:36:36 2020 +0000
@@ -13,9 +13,6 @@
 #include "GHVentilatorConfig.h"
 #include "BMP280.h"
 
-volatile int CurrentChannel = -1;
-volatile bool TooMuchAir = false;
-
 namespace SickBay {
 
 /* A Gravity Hookah Ventilator channel for one patient. */
@@ -41,12 +38,11 @@
 
   /* Constructs a smart waterer. */
   GHVentilatorChannel (PinName PulseOximeterPin,
-                       PinName SensorPin,
+                       PinName FlowSensorPin,
                        PinName SolenoidPin,
                        PinName StatusPin,
                        PinName ServoPin,
-                       I2C& AtmosphereAddress, char I2CAddress,
-                       float PressureHysteresis);
+                       I2C& AtmosphereAddress, char I2CAddress);
     
   /* Returns a pointer to this. */
   GHVentilatorChannel* This();
@@ -79,7 +75,7 @@
   void HandleError ();
     
   /* Samples the Atmospheric pressure and temperature. */
-  void Tare ();
+  void Tare (float HysteresisPatient);
     
   /* Updates the channel with the DeviceTick. */
   void Update();