Commit ac8b5473 authored by Karol Hennessy's avatar Karol Hennessy

Test_room_temperature_atmospheric_pressure

parent c9753192
Pipeline #941 failed with stage
......@@ -986,8 +986,8 @@ float BreathingLoop::calculateFlow(const uint32_t &current_time, const float &pr
float BreathingLoop::getFlow(){
//const float temperature = 298.0;
//const float pressure = 1030.0;
const float temperatureP = 293.0;
const float pressureP = 1016.0;
const float temperatureP = 293.0; //293.0;
const float pressureP = 790.0; //1016.0;
//float l2nl = (temperature *1013.25)/(pressure * 273.15 );
float l2nl = (temperatureP *1013.25)/(pressureP * 273.15 );
......@@ -1045,13 +1045,13 @@ float BreathingLoop::getVolume()
// TODO: need a real calib here
//const float temperature = 298.0;
//const float pressure = 1030.0;
const float temperatureP = 293.0;
const float pressureP = 1016.0;
const float temperatureP = 293.0; //293.0;
const float pressureP = 790.0; //1016.0;
// normal litres/h to millilitres
// need to get dt - assume dt = 10ms
//float nl2l = (pressure * 273.15 )/(temperature *1013.25) ;
float nl2l = (pressureP *1013.25)/(temperatureP * 273.15 );
float nl2l = (pressureP * 273.15)/(temperatureP * 1013.25);
float flow = _calculations.flow; //getFlow(); // flow is now in l/min
float vol = flow*1000.0 / (60 * 100) ; //1000 l-> ml; 60s ; 100 = 10ms measure -> 1s
......
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