forked from M-Labs/thermostat
ctrl_panel: Add polarity option in output settings
This commit is contained in:
parent
ed9d067bee
commit
3eef7e9e37
@ -229,6 +229,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 Config", "Polarity"
|
||||||
|
).setValue(pwm_params["polarity"])
|
||||||
self.params[channel].child(
|
self.params[channel].child(
|
||||||
"Output Config", "Limits", "Max Voltage Difference"
|
"Output Config", "Limits", "Max Voltage Difference"
|
||||||
).setValue(pwm_params["max_v"]["value"])
|
).setValue(pwm_params["max_v"]["value"])
|
||||||
|
@ -18,6 +18,18 @@
|
|||||||
"expanded":true,
|
"expanded":true,
|
||||||
"type":"group",
|
"type":"group",
|
||||||
"children":[
|
"children":[
|
||||||
|
{
|
||||||
|
"name": "Polarity",
|
||||||
|
"type": "list",
|
||||||
|
"limits": {
|
||||||
|
"Normal": "normal",
|
||||||
|
"Reversed": "reversed"
|
||||||
|
},
|
||||||
|
"thermostat:set_param": {
|
||||||
|
"topic": "pwm",
|
||||||
|
"field": "polarity"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name":"Control Method",
|
"name":"Control Method",
|
||||||
"type":"mutex",
|
"type":"mutex",
|
||||||
|
Loading…
Reference in New Issue
Block a user