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