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
a1a5bb5c35
commit
463e515920
@ -130,11 +130,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,23 +1,31 @@
|
|||||||
{
|
{
|
||||||
"ctrl_panel": [
|
"ctrl_panel": [
|
||||||
{
|
{
|
||||||
"name": "temperature",
|
"name": "readings",
|
||||||
"title": "Temperature",
|
"title": "Readings",
|
||||||
"type": "float",
|
"type": "group",
|
||||||
"format": "{value:.4f} {suffix}",
|
"tip": "Thermostat readings",
|
||||||
"suffix": "°C",
|
"children": [
|
||||||
"readonly": true,
|
{
|
||||||
"tip": "The measured temperature at the thermistor"
|
"name": "temperature",
|
||||||
},
|
"title": "Temperature",
|
||||||
{
|
"type": "float",
|
||||||
"name": "tec_i",
|
"format": "{value:.4f} {suffix}",
|
||||||
"title": "Current through TEC",
|
"suffix": "°C",
|
||||||
"type": "float",
|
"readonly": true,
|
||||||
"siPrefix": true,
|
"tip": "The measured temperature at the thermistor"
|
||||||
"suffix": "A",
|
},
|
||||||
"decimals": 6,
|
{
|
||||||
"readonly": true,
|
"name": "tec_i",
|
||||||
"tip": "The measured current through the TEC"
|
"title": "Current through TEC",
|
||||||
|
"type": "float",
|
||||||
|
"siPrefix": true,
|
||||||
|
"suffix": "A",
|
||||||
|
"decimals": 6,
|
||||||
|
"readonly": true,
|
||||||
|
"tip": "The measured current through the TEC"
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "output",
|
"name": "output",
|
||||||
|
Loading…
Reference in New Issue
Block a user