We are also in our first year and need help with programming. Our forward/backward and rotation works but strafing does not work.
Code:
drive = new RobotDrive(1, 3, 2, 4);
driverStick = new Joystick(1);
shooterStick = new Joystick(2);
robotHeadingGyro = new Gyro(1);
double rotation = driverStick.getZ()*-1 / 2; if (driverStick.getRawButton(3)){
rotation += .4;
}else if(driverStick.getRawButton(4)){
rotation += -.4;
}
drive.mecanumDrive_Cartesian(driverStick.getX(),
rotation,
driverStick.getY()*-1,
0);// we plan on putting a gyro in when the strafe works