Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
HEV - High Energy Ventilator
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
5
Issues
5
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
HEV - High Energy Ventilator
Commits
ac8b5473
Commit
ac8b5473
authored
Feb 18, 2021
by
Karol Hennessy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test_room_temperature_atmospheric_pressure
parent
c9753192
Pipeline
#941
failed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
BreathingLoop.cpp
arduino/hev_prototype_v1/src/BreathingLoop.cpp
+5
-5
No files found.
arduino/hev_prototype_v1/src/BreathingLoop.cpp
View file @
ac8b5473
...
...
@@ -986,8 +986,8 @@ float BreathingLoop::calculateFlow(const uint32_t ¤t_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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment