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
d77bcadc
Commit
d77bcadc
authored
Feb 11, 2021
by
Emigdio Jimenez Dominguez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test_Dynamic:compliance
parent
daf6c35f
Pipeline
#911
canceled with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
BreathingLoop.cpp
arduino/hev_prototype_v1/src/BreathingLoop.cpp
+2
-2
No files found.
arduino/hev_prototype_v1/src/BreathingLoop.cpp
View file @
d77bcadc
...
...
@@ -283,7 +283,7 @@ void BreathingLoop::updateCycleReadings()
_cycle_index
=
(
_cycle_index
==
CYCLE_AVG_READINGS
-
1
)
?
0
:
_cycle_index
+
1
;
_cycle_readings
.
timestamp
=
tnow
;
_cycle_readings
.
fiO2_percent
=
_cycle_readings
.
dynamic
_compliance
//_readings_avgs.o2_percent;// FIXME
_cycle_readings
.
fiO2_percent
=
_cycle_readings
.
lung
_compliance
//_readings_avgs.o2_percent;// FIXME
_running_inhale_minute_volume
[
_cycle_index
]
=
_volume_inhale
;
_running_exhale_minute_volume
[
_cycle_index
]
=
_volume_exhale
;
logMsg
(
" I, E "
+
String
(
_volume_inhale
)
+
" "
+
String
(
_volume_exhale
));
...
...
@@ -322,7 +322,7 @@ void BreathingLoop::updateCycleReadings()
_cycle_readings
.
exhaled_tidal_volume
=
mve_sum
/
CYCLE_AVG_READINGS
;
_cycle_readings
.
lung_compliance
=
_cycle_readings
.
tidal_volume
/
(
_cycle_readings
.
peak_inspiratory_pressure
-
_peep
);
_cycle_readings
.
static_compliance
=
_cycle_readings
.
tidal_volume
/
(
_cycle_readings
.
plateau_pressure
-
_peep
);
_cycle_readings
.
dynamic_compliance
=
_cycle_readings
.
inhaled_tidal_volume
/
(
_cycle_readings
.
peak_inspiratory_pressure
-
_peep
);
//
_cycle_readings.dynamic_compliance = _cycle_readings.inhaled_tidal_volume / (_cycle_readings.peak_inspiratory_pressure -_peep);
_cycle_readings
.
mean_airway_pressure
=
_airway_pressure
;
_cycle_readings
.
inhalation_pressure
=
_airway_pressure
;
_cycle_readings
.
apnea_index
+=
(
_apnea_event
==
true
)
?
1
:
0
;
...
...
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