From e0a898d423723d8f80ee9e3cd55a1e10f879d11d Mon Sep 17 00:00:00 2001 From: adligeerik Date: Sat, 24 Nov 2018 10:39:24 +0100 Subject: [PATCH] waitcmd --- movearm/move.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/movearm/move.py b/movearm/move.py index 904f398..e2923f8 100644 --- a/movearm/move.py +++ b/movearm/move.py @@ -57,7 +57,8 @@ class Candybot: else : return - threading.Timer(0.1,self.stop).start() + dType.SetWAITCmd(api, 1, isQueued=0) + #threading.Timer(0.1,self.stop).start() def forearm(self, direction): if direction == 1: @@ -68,7 +69,8 @@ class Candybot: else : return - threading.Timer(0.1,self.stop).start() + dType.SetWAITCmd(api, 1, isQueued=0) + #threading.Timer(0.1,self.stop).start() def gripperRotation(self, direction): if direction == 1: @@ -79,7 +81,8 @@ class Candybot: else : return - threading.Timer(0.1,self.stop).start() + dType.SetWAITCmd(api, 1, isQueued=0) + #threading.Timer(0.1,self.stop).start() def linear(self, direction): if direction == 1: @@ -90,7 +93,8 @@ class Candybot: else : return - threading.Timer(0.1,self.stop).start() + dType.SetWAITCmd(api, 1, isQueued=0) + #threading.Timer(0.1,self.stop).start() def stop(self):