- fixed reporting precision of timer

git-svn-id: http://moon:8086/svn/projects/HendiControl@123 fda53097-d464-4ada-af97-ba876c37ca34
This commit is contained in:
2019-03-21 20:31:42 +00:00
parent c92ba449c8
commit 540b6036e8
+2 -2
View File
@@ -46,7 +46,7 @@ class Controller():
self.log("Heatrate IST = {:0.1f} °C/min.".format(self.heatrate_ist))
self.log("Power = {:0.0f} W".format(self.plant.getPower()))
if self.timer_ist > 0:
self.log("Rast remaining : {:0.2f} min.".format(self.timer_ist/60))
self.log("Rast remaining : {:0.1f} min.".format(self.timer_ist/60))
# self.log("theta_err = {:0.1f} °C".format(theta_err))
self.report_last_time = now
@@ -144,7 +144,7 @@ class Controller():
pid_thresh_track = 0.5
if (theta_ist + 1.0) >= theta_soll:
ovenStateNext = ovenStates.HOLD
self.log("Enter rast of {} min.".format(timer_soll/60))
self.log("Set rast timer to {:0.1f} min.".format(timer_soll/60))
self.timer_ist = timer_soll
if self.ovenState == ovenStates.HOLD: