|
|
@ -57,7 +57,8 @@ class Candybot:
|
|
|
|
|
|
|
|
|
|
|
|
else :
|
|
|
|
else :
|
|
|
|
return
|
|
|
|
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):
|
|
|
|
def forearm(self, direction):
|
|
|
|
if direction == 1:
|
|
|
|
if direction == 1:
|
|
|
@ -68,7 +69,8 @@ class Candybot:
|
|
|
|
|
|
|
|
|
|
|
|
else :
|
|
|
|
else :
|
|
|
|
return
|
|
|
|
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):
|
|
|
|
def gripperRotation(self, direction):
|
|
|
|
if direction == 1:
|
|
|
|
if direction == 1:
|
|
|
@ -79,7 +81,8 @@ class Candybot:
|
|
|
|
|
|
|
|
|
|
|
|
else :
|
|
|
|
else :
|
|
|
|
return
|
|
|
|
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):
|
|
|
|
def linear(self, direction):
|
|
|
|
if direction == 1:
|
|
|
|
if direction == 1:
|
|
|
@ -90,7 +93,8 @@ class Candybot:
|
|
|
|
|
|
|
|
|
|
|
|
else :
|
|
|
|
else :
|
|
|
|
return
|
|
|
|
return
|
|
|
|
threading.Timer(0.1,self.stop).start()
|
|
|
|
dType.SetWAITCmd(api, 1, isQueued=0)
|
|
|
|
|
|
|
|
#threading.Timer(0.1,self.stop).start()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def stop(self):
|
|
|
|
def stop(self):
|
|
|
|