Drive is inverted!

This year we are using 4 talons to drive our robot. We have two of them hooked up per pwm using andymarks slpiced pwm cable. So in the robotdrive code we have two talons, the left and the right. We are using an xbox controller for tank drive but when we drive, everything is inverted. The motors are hooked up right but front on the xbox is back, back is forward, left is right and right is left. Can this be fixed in our code?

IterativeTest.java (3.21 KB)


IterativeTest.java (3.21 KB)

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.

Ok ill try that tomorrow morning whenever i can stop by my school