Пример #1
0
 def homeHandler(self):
     """Homes all the limit switches for the handler."""
     self.controller.addCommand(
         FlipCommand(self.controller.handler, 'down', home=True))
     self.controller.addCommand(
         CombinedCommand([
             ShiftCommand(self.controller.drill,
                          self.controller.handler,
                          0,
                          inAbsolute=True,
                          home=True,
                          rapid=True),
             SpinCommand(self.controller.handler, 0, home=True),
         ]))
Пример #2
0
 def top():
     return CombinedCommand([
         SpinCommand(self.handler, 0),
         FlipCommand(self.handler, 'up')
     ])
Пример #3
0
 def right():
     return CombinedCommand([
         SpinCommand(self.handler, 270),
         FlipCommand(self.handler, 'down')
     ])
Пример #4
0
 def left():
     return CombinedCommand([
         SpinCommand(self.handler, 90),
         FlipCommand(self.handler, 'down')
     ])
Пример #5
0
 def back():
     return CombinedCommand([
         SpinCommand(self.handler, 180),
         FlipCommand(self.handler, 'down')
     ])
Пример #6
0
 def front():
     return CombinedCommand([
         SpinCommand(self.handler, 0),
         FlipCommand(self.handler, 'down')
     ])
Пример #7
0
 def calibrateHandler(self):
     self.controller.addCommand(FlipCommand(self.controller.handler, 'up'))
     self.pauseCommand()
     self.controller.addCommand(FlipCommand(self.controller.handler,
                                            'down'))