slaclab / pabv_control

BSD 3-Clause "New" or "Revised" License
2 stars 5 forks source link

Separate Volume and Pressure Modes #106

Closed marty-pmr closed 4 years ago

marty-pmr commented 4 years ago

For mostly keeping the operation of the ASV similar to that of commercial ventilators, lets implement separate Volume and Pressure modes.

There should be a mode switch, logically the same as On/Off in the GUI and reflected in the Arduino.

In Volume mode: As things are now

In Pressure mode: Ignore the VolMaxAdj (ie do not stop the piston if VolMaxAdj is reached) parameter and do not change it.

kernal42 commented 4 years ago

Note: If Issue #105 is resolved as suggested, it should be unnecessary for the mode change to explicitly freeze VolMaxAdj.

slacrherbst commented 4 years ago

Set volmax to 800 for this mode, effective, don't actually change the configuration.