Quote:
Originally Posted by Tweety
I read somewhere that I have to invert motors. How do I do it in java?
|
Code:
mecDrive.setInvertedMotor(RobotDrive.MotorType.kFrontLeft, true);
mecDrive.setInvertedMotor(RobotDrive.MotorType.kRearLeft, true);
Those are the motors that my team had to invert in order to strafe. But, we also had problems with driving forward and back at the time. So, if this messes up the forward and backward driving, ensure that the motor channels for your mecanum drive are like so:
0(frontLeft), 1(rearLeft), 2(frontRight), 3(rearRight)
This should fix any problems you might have. Otherwise, you might have to invert the motors when you get and X-input and then switch them back when you get Y. But, you should avoid this at all costs.