forked from M-Labs/thermostat
ctrl_panel: Add polarity option in output settings
This commit is contained in:
parent
b1e5a843eb
commit
7f1223b1b9
@ -203,6 +203,9 @@ class CtrlPanel(QObject):
|
|||||||
for pwm_params in pwm_data:
|
for pwm_params in pwm_data:
|
||||||
channel = pwm_params["channel"]
|
channel = pwm_params["channel"]
|
||||||
with QSignalBlocker(self.params[channel]):
|
with QSignalBlocker(self.params[channel]):
|
||||||
|
self.params[channel].child(
|
||||||
|
"output", "polarity"
|
||||||
|
).set_value_with_lock(pwm_params["polarity"])
|
||||||
self.params[channel].child(
|
self.params[channel].child(
|
||||||
"output", "limits", "max_v"
|
"output", "limits", "max_v"
|
||||||
).set_value_with_lock(pwm_params["max_v"]["value"])
|
).set_value_with_lock(pwm_params["max_v"]["value"])
|
||||||
|
@ -34,6 +34,19 @@
|
|||||||
"type": "group",
|
"type": "group",
|
||||||
"tip": "Settings of the output to the TEC",
|
"tip": "Settings of the output to the TEC",
|
||||||
"children": [
|
"children": [
|
||||||
|
{
|
||||||
|
"name": "polarity",
|
||||||
|
"title": "Polarity",
|
||||||
|
"type": "list",
|
||||||
|
"limits": {
|
||||||
|
"Normal": "normal",
|
||||||
|
"Reversed": "reversed"
|
||||||
|
},
|
||||||
|
"thermostat:set_param": {
|
||||||
|
"topic": "pwm",
|
||||||
|
"field": "polarity"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "control_method",
|
"name": "control_method",
|
||||||
"title": "Control Method",
|
"title": "Control Method",
|
||||||
|
Loading…
Reference in New Issue
Block a user