1. Fixed bug that arose when the method for detecting a missing bottle was changed. Screen wasn't updating properly with pressure data, and screen was flickering. It turned out to be too much debug code with the serial.Print function. Commented out all serial.Prints.
2. In null bottle case, changed the intervals to sample pressure, and the threshold for pressure change in over that interval, to determine if a bottle was in place. Must work for largest possible bottle.
3. Added platform drop and door open after null bottle case detected.
1. Added routine right before FILL LOOP to check whether P1 has dropped below pressureNull, which could allow for liquid dispense with no bottle. This could happen if CO2 tank is turned off after platformUp routine sets startPressure, and then gas in hose is detached from keg and degassed.
LAST COMMIT BEFORE 2ND PRESSURE GAUGE
1. Attempted to solve edge condition where: a) Platform up; b) gas turned off; c) gas line disconnected from keg and line depressurized; d) then door closed and liquid spews. Tried to use state variable "inPressureLoopExecuted" to detect whether bottle had gone through pressure loop before S1 would open, to no avail.