SHARE
TWEET

Python RobotPy problem

a guest Jan 17th, 2015 243 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import wpilib
  2.  
  3. class MyRobot(wpilib.IterativeRobot):
  4.  
  5.     def robotInit(self):
  6.         self.motor1=wpilib.Jaguar(8)
  7.         self.motor2=wpilib.Jaguar(9)
  8.         self.motor1.set(.125)
  9.         self.motor2.set(.125)
  10.         self.robot_drive=wpilib.RobotDrive(self.motor1,self.motor2)
  11.         self.stick=wpilib.Joystick(1)
  12.         self.teleopPeriodic()
  13.     def teleopPeriodic(self):
  14.         self.robot_drive.aracadeDrive(self.stick)
  15.  
  16.  
  17. if __name__=="__main__":
  18.     wpilib.run(MyRobot)
RAW Paste Data
Top