Closedown

This commit is contained in:
gac-S_Changer
2017-03-29 15:31:52 +02:00
parent 052acadca7
commit 0bddf0a5cb
2 changed files with 3 additions and 3 deletions

View File

@@ -32,7 +32,7 @@ class RobotSC(RobotTCP):
#TODO: Check safe position
RobotTCP.start_task(self, program, *args, **kwargs)
def stop_task(self, program, *args, **kwargs):
def stop_task(self):
RobotTCP.stop_task()
#TODO: Restore safe position

View File

@@ -381,11 +381,11 @@ class RobotTCP(TcpDevice, Stoppable):
def start_task(self, program, *args, **kwargs):
for task in (self.high_level_tasks + [program]):
if self.get_task_status(task)[0]>=0:
raise Exception("Cannot start program - ongoing high-level task: " + task)
raise Exception("Ongoing high-level task: " + task)
self.current_task = program
self.task_create(program, *args, **kwargs)
def stop_task(self, program, *args, **kwargs):
def stop_task(self):
for task in (self.high_level_tasks + [program]):
if self.get_task_status(task)[0]>=0:
self.task_kill(task)