- deactivate plant and stirrer on thread start
git-svn-id: http://moon:8086/svn/projects/HendiControl@281 fda53097-d464-4ada-af97-ba876c37ca34
This commit is contained in:
@@ -63,9 +63,9 @@ class Controller(TimerListener):
|
||||
self.power_hold_offset = 200
|
||||
self.power_heat_offset = 1500
|
||||
self.queue = queue.Queue()
|
||||
self.thread = threading.Thread(target=self.main)
|
||||
self.rast_done = False
|
||||
self.receipe_done = False
|
||||
self.thread = threading.Thread(target=self.main)
|
||||
self.thread.start()
|
||||
|
||||
def command(self, cmd):
|
||||
@@ -162,6 +162,9 @@ class Controller(TimerListener):
|
||||
self.sensorTimer.start(self.sensor_dt/self.sim_warp_factor)
|
||||
self.plantTimer.start(1/self.sim_warp_factor)
|
||||
|
||||
self.stirrer.deactivate()
|
||||
self.plant.activate(False)
|
||||
|
||||
run = True
|
||||
while(run and not self.receipe_done):
|
||||
self.timerMgr.process()
|
||||
|
||||
Reference in New Issue
Block a user