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
f41055b4
Commit
f41055b4
authored
Oct 21, 2021
by
Benjamin Mummery
💻
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
4dp precision for KP, KI, KD on expert page
parent
b227ca3b
Pipeline
#2748
canceled with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
expert_config.json
NativeUI/configs/expert_config.json
+4
-4
global_spinbox.py
NativeUI/global_widgets/global_spinbox.py
+5
-1
No files found.
NativeUI/configs/expert_config.json
View file @
f41055b4
...
...
@@ -30,9 +30,9 @@
]
],
"PID"
:
[
[
"KP"
,
""
,
"kp"
,
"SET_PID"
,
"KP"
],
[
"KI"
,
""
,
"ki"
,
"SET_PID"
,
"KI"
],
[
"KD"
,
""
,
"kd"
,
"SET_PID"
,
"KD"
],
[
"KP"
,
""
,
"kp"
,
"SET_PID"
,
"KP"
,
4
],
[
"KI"
,
""
,
"ki"
,
"SET_PID"
,
"KI"
,
4
],
[
"KD"
,
""
,
"kd"
,
"SET_PID"
,
"KD"
,
4
],
[
"PID Gain"
,
""
,
"pid_gain"
,
"SET_PID"
,
"PID_GAIN"
],
[
"Max. PP"
,
...
...
@@ -58,4 +58,4 @@
[
"Exhale"
,
"unit_ms"
,
"duration_exhale"
,
"SET_DURATION"
,
"EXHALE"
],
[
"I:E Ratio"
,
""
,
"inhale_exhale_ratio"
]
]
}
}
NativeUI/global_widgets/global_spinbox.py
View file @
f41055b4
...
...
@@ -112,14 +112,18 @@ class labelledSpin(QtWidgets.QWidget):
self
.
label
,
self
.
units
,
self
.
tag
,
self
.
cmd_type
,
self
.
cmd_code
,
self
.
min
,
self
.
max
,
self
.
initVal
,
self
.
step
,
self
.
decPlaces
=
(
infoArray
)
if
len
(
infoArray
)
==
9
:
el
if
len
(
infoArray
)
==
9
:
self
.
label
,
self
.
units
,
self
.
tag
,
self
.
cmd_type
,
self
.
cmd_code
,
self
.
min
,
self
.
max
,
self
.
step
,
self
.
decPlaces
=
(
infoArray
)
elif
len
(
infoArray
)
==
6
:
self
.
label
,
self
.
units
,
self
.
tag
,
self
.
cmd_type
,
self
.
cmd_code
,
self
.
decPlaces
=
infoArray
elif
len
(
infoArray
)
==
5
:
self
.
label
,
self
.
units
,
self
.
tag
,
self
.
cmd_type
,
self
.
cmd_code
=
infoArray
elif
len
(
infoArray
)
==
3
:
self
.
label
,
self
.
units
,
self
.
tag
=
infoArray
else
:
raise
Exception
(
"wrong length for infoArray:
%
s
\n
%
s"
%
(
len
(
infoArray
),
infoArray
))
self
.
manuallyUpdated
=
False
self
.
layout
=
QtWidgets
.
QHBoxLayout
()
...
...
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