- refactored controller
git-svn-id: http://moon:8086/svn/projects/HendiControl@279 fda53097-d464-4ada-af97-ba876c37ca34
This commit is contained in:
@@ -108,12 +108,12 @@ class Controller(TimerListener):
|
||||
if rast is not None:
|
||||
self.ctrl_theta_soll = rast['temp']
|
||||
self.ctrl_heatrate_soll = rast['heatRate']
|
||||
self.rast_timer_soll = 60 * rast['time']
|
||||
isFinished = self.rast(rast)
|
||||
if isFinished:
|
||||
if not self.rastTimer.isActive and not self.rast_done:
|
||||
self.log ("Start rast timer with {} min.".format(self.rast_timer_soll/60))
|
||||
self.rastTimer.start(self.rast_timer_soll / self.sim_warp_factor, mode='oneshot')
|
||||
rast_timer_soll = 60 * rast['time']
|
||||
self.log ("Start rast timer with {} min.".format(rast_timer_soll/60))
|
||||
self.rastTimer.start(rast_timer_soll / self.sim_warp_factor, mode='oneshot')
|
||||
self.rast_done = True
|
||||
else:
|
||||
self.receipe_done = True
|
||||
|
||||
Reference in New Issue
Block a user