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:
atse 2023-10-03 17:42:31 +08:00 committed by Tse Kwok Yan
parent ac643a62e0
commit 8e961ac414
1 changed files with 1 additions and 1 deletions

View File

@ -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", "Kd").setValue(settings["parameters"]["kd"])
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)
def update_report(self, report_data):