Commit 55a89c6a authored by Peter Švihra's avatar Peter Švihra

added calibration to new flow calc

parent 12a4d4a0
......@@ -319,7 +319,7 @@ void BreathingLoop::updateCalculations() {
uint32_t tnow = static_cast<uint32_t>(millis());
_calculations.flow = getFlow();
_calculations.flow_calc = calculateFlow(tnow, _readings_raw.pressure_patient, _readings_raw.pressure_buffer);
_calculations.flow_calc = calculateFlow(tnow, adcToMillibarFloat(_readings_raw.pressure_patient, _calib_avgs.pressure_patient), adcToMillibarFloat(_readings_raw.pressure_buffer, _calib_avgs.pressure_buffer));
_calculations.volume = getVolume();
_calculations.pressure_airway = getAirwayPressure();
}
......
......@@ -143,6 +143,8 @@ class ClientPlots(QtWidgets.QMainWindow):
pass
elif brtype == "BATTERY":
pass
elif brtype == "CMD":
pass
else:
raise KeyError
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment