Thread: Xbox Controller
View Single Post
  #5   Spotlight this post!  
Unread 21-06-2014, 20:52
NWChen's Avatar
NWChen NWChen is offline
Alum
no team
 
Join Date: Oct 2012
Rookie Year: 2012
Location: New York City
Posts: 205
NWChen is a splendid one to beholdNWChen is a splendid one to beholdNWChen is a splendid one to beholdNWChen is a splendid one to beholdNWChen is a splendid one to beholdNWChen is a splendid one to beholdNWChen is a splendid one to behold
Re: Xbox Controller

Can we see the code you have so far?

Assuming you're using a RobotDrive object to control your drivetrain, and the tankDrive method, your Xbox controller (like ekapalka said) should behave much like a pair of joysticks in tank drive - with each Xbox stick controlling one side of the drivetrain.
Code:
drive.tankDrive(gamepad.getLeftStickY(), gamepad.getRightStickY();
__________________
2012 - 2015 • Team 2601

Reply With Quote