Closedown
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user