View Single Post
  #1   Spotlight this post!  
Unread 19-01-2016, 15:59
onenerdyguy onenerdyguy is offline
Registered User
FRC #5929
 
Join Date: Jan 2016
Location: Lake Park, MN
Posts: 39
onenerdyguy is an unknown quantity at this point
Tank drive on Xbox Controller

I'm having difficulty getting a tank drive up and running on an Xbox controller. For some reason, it won't detect the right stick.

according to the driver station, our right stick Y axis is axis 5. My code is as follows:

self.leftstick = wpilib.Joystick(0,1)
self.rightstick = wpilib.Joystick(0,5)

The drive code is the very simple
self.myRobot.tankDrive(self.leftStick, self.rightStick)


The left stick works fine. Right stick doesn't even appear. Is there something I'm missing?
Reply With Quote