Exemplo n.º 1
0
 def initDefaultCommand(self):
     self.setDefaultCommand(Drive())
Exemplo n.º 2
0
 def __init__(self, robot):
     Drive(robot)
     self.left_motor = wpilib.Spark(robotmap.LEFT_MOTOR)
     self.right_motor = wpilib.Spark(robotmap.RIGHT_MOTOR)
     self.drive = wpilib.drive.DifferentialDrive(self.left_motor,
                                                 self.right_motor)