Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HEV - High Energy Ventilator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Projects
HEV - High Energy Ventilator
Commits
9e2f5731
Commit
9e2f5731
authored
4 years ago
by
Your Name
Browse files
Options
Downloads
Patches
Plain Diff
patches for exhale and setting inhale pressure
parent
720636a2
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
arduino/hev_prototype_v1/src/BreathingLoop.cpp
+1
-1
1 addition, 1 deletion
arduino/hev_prototype_v1/src/BreathingLoop.cpp
raspberry-dataserver/CommsDebug.py
+1
-1
1 addition, 1 deletion
raspberry-dataserver/CommsDebug.py
with
2 additions
and
2 deletions
arduino/hev_prototype_v1/src/BreathingLoop.cpp
+
1
−
1
View file @
9e2f5731
...
...
@@ -586,7 +586,7 @@ void BreathingLoop::FSM_breathCycle()
case
BL_STATES
::
EXHALE
:
_states_durations
.
exhale
=
calculateDurationExhale
();
_valves_controller
.
setValves
(
VALVE_STATE
::
CLOSED
,
VALVE_STATE
::
CLOSED
,
VALVE_STATE
::
CLOSED
,
VALVE_STATE
::
OPEN
,
VALVE_STATE
::
CLOSED
);
_fsm_timeout
=
_states_durations
.
exhale
;
//
_fsm_timeout = _states_durations.exhale;
measurePEEP
();
inhaleTrigger
();
break
;
...
...
This diff is collapsed.
Click to expand it.
raspberry-dataserver/CommsDebug.py
+
1
−
1
View file @
9e2f5731
...
...
@@ -80,7 +80,7 @@ async def commsDebug():
cmd
=
send_cmd
(
cmd_type
=
"
SET_PID
"
,
cmd_code
=
"
KP
"
,
param
=
2.5
*
0.001
)
#0.0108/5) # 108/4) # to set Kp=0.0002, param=200 i.e., micro_Kp
cmd
=
send_cmd
(
cmd_type
=
"
SET_PID
"
,
cmd_code
=
"
KI
"
,
param
=
2.5
*
0.0003
)
#0.00162*0.4)#0.0054/2) # 0004)#0002) # to set Kp=0.0002, param=200 i.e., micro_Kp
cmd
=
send_cmd
(
cmd_type
=
"
SET_PID
"
,
cmd_code
=
"
KD
"
,
param
=
0.0
)
#0.00162*1.5)#0.0054/2) # to set Kp=0.0002, param=200 i.e., micro_Kp
cmd
=
send_cmd
(
cmd_type
=
"
SET_
PID
"
,
cmd_code
=
"
TARGET_FINAL
_PRESSURE
"
,
param
=
1
5.0
)
#set Kp=0.0002, param=200 i.e., micro_Kp
cmd
=
send_cmd
(
cmd_type
=
"
SET_
TARGET_CURRENT
"
,
cmd_code
=
"
INSPIRATORY
_PRESSURE
"
,
param
=
2
5.0
)
#set Kp=0.0002, param=200 i.e., micro_Kp
cmd
=
send_cmd
(
cmd_type
=
"
SET_PID
"
,
cmd_code
=
"
NSTEPS
"
,
param
=
3
)
# to set Kp=0.0002, param=200 i.e., micro_Kp
# # Change TIMEOUT of breathing cycle (BUFF-PRE-INHALE)
cmd
=
send_cmd
(
cmd_type
=
"
SET_DURATION
"
,
cmd_code
=
"
BUFF_PRE_INHALE
"
,
param
=
10.
)
#
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment