forked from M-Labs/thermostat
Patch to avoid floating point error of temperature
A more complete system of dealing with floating point imprecision on the way.
This commit is contained in:
parent
6005caf8b7
commit
fe6901d35f
@ -792,7 +792,7 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
|
|||||||
self.params[channel].child("PID Config", "Ki").setValue(settings["parameters"]["ki"])
|
self.params[channel].child("PID Config", "Ki").setValue(settings["parameters"]["ki"])
|
||||||
self.params[channel].child("PID Config", "Kd").setValue(settings["parameters"]["kd"])
|
self.params[channel].child("PID Config", "Kd").setValue(settings["parameters"]["kd"])
|
||||||
self.params[channel].child("Output Config", "Control Method", "Set Temperature").setValue(settings["target"])
|
self.params[channel].child("Output Config", "Control Method", "Set Temperature").setValue(settings["target"])
|
||||||
self.channel_graphs[channel].t_line.setValue(settings["target"])
|
self.channel_graphs[channel].t_line.setValue(round(settings["target"], 6))
|
||||||
|
|
||||||
@pyqtSlot(list)
|
@pyqtSlot(list)
|
||||||
def update_report(self, report_data):
|
def update_report(self, report_data):
|
||||||
|
Loading…
Reference in New Issue
Block a user