forked from M-Labs/thermostat
ctrl_panel: Put plotted values into readings group
For more intuitiveness to first-time users
This commit is contained in:
parent
980cabefb5
commit
9ebdcfc54f
@ -136,11 +136,13 @@ class CtrlPanel(QObject):
|
|||||||
"output", "control_method", "i_set"
|
"output", "control_method", "i_set"
|
||||||
).setValue(settings["i_set"])
|
).setValue(settings["i_set"])
|
||||||
if settings["temperature"] is not None:
|
if settings["temperature"] is not None:
|
||||||
self.params[channel].child("temperature").setValue(
|
self.params[channel].child("readings", "temperature").setValue(
|
||||||
settings["temperature"]
|
settings["temperature"]
|
||||||
)
|
)
|
||||||
if settings["tec_i"] is not None:
|
if settings["tec_i"] is not None:
|
||||||
self.params[channel].child("tec_i").setValue(settings["tec_i"])
|
self.params[channel].child("readings", "tec_i").setValue(
|
||||||
|
settings["tec_i"]
|
||||||
|
)
|
||||||
|
|
||||||
@pyqtSlot("QVariantList")
|
@pyqtSlot("QVariantList")
|
||||||
def update_thermistor(self, sh_data):
|
def update_thermistor(self, sh_data):
|
||||||
|
@ -1,5 +1,11 @@
|
|||||||
{
|
{
|
||||||
"ctrl_panel": [
|
"ctrl_panel": [
|
||||||
|
{
|
||||||
|
"name": "readings",
|
||||||
|
"title": "Readings",
|
||||||
|
"type": "group",
|
||||||
|
"tip": "Thermostat readings",
|
||||||
|
"children": [
|
||||||
{
|
{
|
||||||
"name": "temperature",
|
"name": "temperature",
|
||||||
"title": "Temperature",
|
"title": "Temperature",
|
||||||
@ -18,6 +24,8 @@
|
|||||||
"decimals": 6,
|
"decimals": 6,
|
||||||
"readonly": true,
|
"readonly": true,
|
||||||
"tip": "The measured current through the TEC"
|
"tip": "The measured current through the TEC"
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "output",
|
"name": "output",
|
||||||
|
Loading…
Reference in New Issue
Block a user