Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
deltaflight
Delta Configurator
Commits
f320aa4f
Commit
f320aa4f
authored
Apr 05, 2021
by
Pawel Spychalski (DzikuVx)
Browse files
Show PID output in GUI
parent
0101ee32
Changes
3
Hide whitespace changes
Inline
Side-by-side
js/programmingPid.js
View file @
f320aa4f
...
...
@@ -3,6 +3,7 @@
let
ProgrammingPid
=
function
(
enabled
,
setpointType
,
setpointValue
,
measurementType
,
measurementValue
,
gainP
,
gainI
,
gainD
,
gainFF
)
{
let
self
=
{};
let
$row
;
self
.
getEnabled
=
function
()
{
return
!!
enabled
;
...
...
@@ -211,5 +212,13 @@ let ProgrammingPid = function (enabled, setpointType, setpointValue, measurement
}
self
.
update
=
function
(
index
,
value
,
$container
)
{
if
(
typeof
$row
===
'
undefined
'
)
{
return
;
}
$row
.
find
(
'
.pid_cell__output
'
).
html
(
value
);
}
return
self
;
};
\ No newline at end of file
js/programmingPidCollection.js
View file @
f320aa4f
...
...
@@ -44,5 +44,15 @@ let ProgrammingPidCollection = function () {
GUI
.
switchery
();
};
self
.
update
=
function
(
statuses
)
{
let
$table
=
$container
.
find
(
"
.pid__table
"
)
for
(
let
k
in
self
.
get
())
{
if
(
self
.
get
().
hasOwnProperty
(
k
))
{
self
.
get
()[
k
].
update
(
k
,
statuses
.
get
(
k
),
$table
);
}
}
}
return
self
;
};
\ No newline at end of file
tabs/programming.js
View file @
f320aa4f
...
...
@@ -66,6 +66,7 @@ TABS.programming.initialize = function (callback, scrollPosition) {
function
onStatusPullDone
()
{
LOGIC_CONDITIONS
.
update
(
LOGIC_CONDITIONS_STATUS
);
GLOBAL_VARIABLES_STATUS
.
update
(
$
(
'
.tab-programming
'
));
PROGRAMMING_PID
.
update
(
PROGRAMMING_PID_STATUS
);
}
}
...
...
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