Keep i_set visible even when PID is engaged

Since i_set is also plotted, we would also want to see its precise value
too.
This commit is contained in:
atse 2024-07-18 11:41:03 +08:00
parent c75c8f2da0
commit 6dcd1b6275

View File

@ -53,7 +53,7 @@ class CtrlPanel(QObject):
param.child(*handle[0]).sigActivated.connect(handle[1])
param.child("output", "control_method").sigValueChanged.connect(
lambda param, value: param.child("i_set").show(
lambda param, value: param.child("i_set").setWritable(
value == "constant_current"
)
)