From 3be97ff34ee10d97ffe2d8f765b57618190ece68 Mon Sep 17 00:00:00 2001 From: Chris Gilmer Date: Wed, 12 Jul 2017 09:48:12 -0700 Subject: [PATCH] Properly end freedrive mode --- urx/urrobot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/urx/urrobot.py b/urx/urrobot.py index 67ff400..c3e3281 100644 --- a/urx/urrobot.py +++ b/urx/urrobot.py @@ -397,7 +397,8 @@ class URRobot(object): if val: self.send_program("def myProg():\n\tfreedrive_mode()\n\tsleep({})\nend".format(timeout)) 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): if val: