I've had a little problem programming the mecanum wheels myself. In my post before I said I had inverted the motors to strafe. Well, turns out that makes a nasty ugly strafe. Anyone have tips regarding how to actually program a strafe with arcade drive?
Thanks.
here's our current code:
Code:
if(joystickL.getTrigger() && state == 0) {
robotDrive.setInvertedMotor(frontLEFT, true);
robotDrive.setInvertedMotor(rearRIGHT, true);
// robotDrive.setInvertedMotor(frontRIGHT, false);
// robotDrive.setInvertedMotor(rearLEFT, false);
this.state = 1;
} else if(joystickL.getTrigger() && state == 1) {
robotDrive.setInvertedMotor(frontLEFT, false);
robotDrive.setInvertedMotor(rearRIGHT, false);
// robotDrive.setInvertedMotor(frontRIGHT, false);
// robotDrive.setInvertedMotor(rearLEFT, false);
this.state = 0;
}