Exemplo n.º 1
0
 def clockwise(self, event):
     # ser.write("9 100 1000")
     instruction.Instruction(9, self.speed, 1000).execute()
     self.log("Clockwise")
Exemplo n.º 2
0
 def counterClockwise(self, event):
     # ser.write("10 100 1000")
     instruction.Instruction(10, self.speed, 1000).execute()
     self.log("Counter Clockwise")
Exemplo n.º 3
0
 def left(self, event):
     # ser.write("7 100 1000")
     instruction.Instruction(7, self.speed, 1000).execute()
     self.log("Left")
Exemplo n.º 4
0
 def forwardLeft(self, event):
     # ser.write("8 100 1000")
     instruction.Instruction(8, self.speed, 1000).execute()
     self.log("Forward Left")
Exemplo n.º 5
0
 def backward(self, event):
     # ser.write("5 100 1000")
     instruction.Instruction(5, self.speed, 1000).execute()
     self.log("Backward")
Exemplo n.º 6
0
 def backwardLeft(self, event):
     # ser.write("6 100 1000")
     instruction.Instruction(6, self.speed, 1000).execute()
     self.log("Backward Left")
Exemplo n.º 7
0
 def backwardRight(self, event):
     # ser.write("4 100 1000")
     instruction.Instruction(4, self.speed, 1000).execute()
     self.log("Backward Right")
Exemplo n.º 8
0
 def right(self, event):
     # ser.write("3 100 1000")
     instruction.Instruction(3, self.speed, 1000).execute()
     self.log("Right")
Exemplo n.º 9
0
 def forwardRight(self, event):
     # ser.write("2 100 1000")
     instruction.Instruction(2, self.speed, 1000).execute()
     self.log("Forward Right")
Exemplo n.º 10
0
 def forward(self, event):
     # ser.write("1 100 1000")
     instruction.Instruction(1, self.speed, 1000).execute()
     self.log("Forward")
Exemplo n.º 11
0
 def stop(self, event):
     # ser.write("0 0 1000")
     instruction.Instruction(0, self.speed, 1000).execute()
     self.log("Stop")