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