View Single Post
  #11   Spotlight this post!  
Unread 20-01-2015, 20:35
team-4480's Avatar
team-4480 team-4480 is offline
Debug? What's that?
FRC #4480
 
Join Date: Jan 2015
Rookie Year: 2013
Location: Minnesooota
Posts: 229
team-4480 will become famous soon enoughteam-4480 will become famous soon enough
Re: How to use Xbox controller with RobotPy?

Quote:
Originally Posted by virtuald View Post
I'm not quite sure what you mean. If you want to set a single motor:

Code:
joystick = wpilib.Joystick(0)
motor = wpilib.Talon(2)

motor.set(joystick.getX())
Do the motor.set and things like that have to be in the Teleop function to work properly? Thanks!