Code:
RobotDrive myDrive = new RobotDrive(1,2,3,4);
if( invertMyDrive == true )
{
myDrive.setInvertedMotor(kFrontLeft, true);
myDrive.setInvertedMotor(kFrontRight, true);
myDrive.setInvertedMotor(kRearLeft, true);
myDrive.setInvertedMotor(kRearRight, true);
}
myDrive.tankDrive(leftStick, rightStick);
The above snippet will reverse the forward/backward direction of your bot if the "invertMyDrive" variable (a boolean) is set.
It sounds like if your axes got switched, you only inverted half of the drive.