View Single Post
  #6   Spotlight this post!  
Unread 19-01-2015, 20:30
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 Nunez4296 View Post
From the looks of it, your code is only written for one axis, axis 0. That is most likely the reason why only the left side is working. Go to the driver station with your controller plugged in and then to the USB panel. There you will find the connected joystick and all the buttons. Any button you press or joystick you move will show you the associated button value that you should implement into the code. remember that these are all array values, so you start with axis 0 and button 0.
Thanks to both of you for the help and I will try it tomorrow!