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!
- import wpilib
- class MyRobot(wpilib.IterativeRobot):
- def robotInit(self):
- self.motor1=wpilib.Jaguar(8)
- self.motor2=wpilib.Jaguar(9)
- self.motor1.set(.125)
- self.motor2.set(.125)
- self.robot_drive=wpilib.RobotDrive(self.motor1,self.motor2)
- self.stick=wpilib.Joystick(1)
- self.teleopPeriodic()
- def teleopPeriodic(self):
- self.robot_drive.aracadeDrive(self.stick)
- if __name__=="__main__":
- wpilib.run(MyRobot)
RAW Paste Data
