Properly end freedrive mode
This commit is contained in:
parent
4c6f9d9fff
commit
3be97ff34e
@ -397,7 +397,8 @@ class URRobot(object):
|
|||||||
if val:
|
if val:
|
||||||
self.send_program("def myProg():\n\tfreedrive_mode()\n\tsleep({})\nend".format(timeout))
|
self.send_program("def myProg():\n\tfreedrive_mode()\n\tsleep({})\nend".format(timeout))
|
||||||
else:
|
else:
|
||||||
self.send_program("set robotmode run")
|
# This is a non-existant program, but running it will stop freedrive
|
||||||
|
self.send_program("def myProg():\n\end_freedrive_mode()\nend")
|
||||||
|
|
||||||
def set_simulation(self, val):
|
def set_simulation(self, val):
|
||||||
if val:
|
if val:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user