View Single Post
  #2   Spotlight this post!  
Unread 01-02-2014, 19:21
Dinoyan Dinoyan is offline
Registered User
no team
Team Role: Electrical
 
Join Date: Nov 2012
Rookie Year: 2012
Location: Canada
Posts: 62
Dinoyan is an unknown quantity at this point
Re: Drive is inverted!

Instead of:
drive.tankDrive(joystick1.getRawAxis(2), joystick1.getRawAxis(5));

Try:
drive.tankDrive(-joystick1.getRawAxis(2), -joystick1.getRawAxis(5)); //Xbox

Putting a negative sign in front of joystick it will invert and now it should work fine.

Last edited by Dinoyan : 01-02-2014 at 19:24.
Reply With Quote