forked from M-Labs/thermostat
Expand PID Settings on PID engage
This commit is contained in:
parent
5574559ac6
commit
288b94352b
@ -57,6 +57,13 @@ class CtrlPanel(QObject):
|
||||
for handle in sigActivated_handles[ch]:
|
||||
param.child(*handle[0]).sigActivated.connect(handle[1])
|
||||
|
||||
self.params[ch].child("output", "control_method").sigValueChanged.connect(
|
||||
lambda param, value: param.parent()
|
||||
.parent()
|
||||
.child("pid")
|
||||
.setOpts(expanded=(value == "temperature_pid"))
|
||||
)
|
||||
|
||||
def _indicate_usage(param, control_method="constant_current"):
|
||||
for item in param.child("i_set").items:
|
||||
is_constant_current = control_method == "constant_current"
|
||||
|
@ -281,7 +281,7 @@
|
||||
{
|
||||
"name": "pid",
|
||||
"title": "PID Settings",
|
||||
"expanded": true,
|
||||
"expanded": false,
|
||||
"type": "group",
|
||||
"tip": "Settings of PID parameters and clamping",
|
||||
"children": [
|
||||
|
Loading…
Reference in New Issue
Block a user