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
a98e5b94
Commit
a98e5b94
authored
Nov 02, 2020
by
Karol Hennessy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
o2 update
parent
5179e313
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
BreathingLoop.cpp
arduino/hev_prototype_v1/src/BreathingLoop.cpp
+3
-0
No files found.
arduino/hev_prototype_v1/src/BreathingLoop.cpp
View file @
a98e5b94
...
...
@@ -1290,6 +1290,9 @@ void BreathingLoop::doO2ValveFrac(float desired_fiO2, float pressure_change)
// we calculate amount of o2 : air to input
// if we have to fill 300 mbar, we fill up to (o2_frac * 300) mbar of o2, then (1-o2_frac)*300 mbar air
// we estimate the current o2 fraction, rather than wait for o2 sensor
// we should have an alarm if o2 sensor and o2 expectation is wrong after 1 min
float
o2change
=
(
desired_fiO2
*
(
1000
+
pressure_change
)
-
_expected_fiO2
*
1000
-
0.21
*
pressure_change
)
/
(
0.79
*
pressure_change
);
if
(
o2change
>
1
){
o2change
=
1
;
...
...
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