Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
processes
DoubleTankLab.jl
Commits
a64cf447
Commit
a64cf447
authored
Mar 14, 2018
by
Jacob Wikmark
Browse files
turning off I resets it
parent
98486e86
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/tanklabgui.jl
View file @
a64cf447
...
...
@@ -27,9 +27,9 @@ function makegui(P, run_process, plottingframerate = 10, guiframerate = 10)
u
in
slider
(
0
:
0.01
:
1
,
label
=
" um"
),
run
in
button
(
"Run"
),
#This should only exist in the simulated version
cali
in
button
(
"Calibrate"
),
K
in
slider
(
0
:
0.1
:
5
0
,
label
=
"K"
),
Ti
in
slider
(
0
:
0.1
:
5
0
,
label
=
"Ti"
),
Td
in
slider
(
0
:
0.1
:
5
0
,
label
=
"Td"
),
K
in
slider
(
0
:
0.1
:
3
0
,
label
=
"K"
),
Ti
in
slider
(
0
:
0.1
:
3
0
,
label
=
"Ti"
),
Td
in
slider
(
0
:
0.1
:
3
0
,
label
=
"Td"
),
mode
in
togglebuttons
([
"Manual"
,
"Automatic"
],
label
=
""
),
tankno
in
togglebuttons
([
"Upper"
,
"Lower"
],
label
=
""
),
pOn
in
togglebuttons
([
"On"
,
"Off"
],
label
=
"P"
),
...
...
@@ -117,6 +117,12 @@ function makegui(P, run_process, plottingframerate = 10, guiframerate = 10)
end
end
on
(
observe
(
iOn
))
do
val
if
val
==
"Off"
tankpid
.
I
=
0
end
end
# Below is the construction of the gui DOM
LabGUI
.
set!
(
gui
,
widgets
)
add!
(
gui
,
rcont
)
...
...
Write
Preview
Supports
Markdown
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