title: FRC Java Mecanum Drive
body: <p>I am the programmer for my FRC Team 4468 and we are using mecanum wheels this year. We are trying to control the robot with two joysticks, one for moving in a direction (mecStick), and another for rotation (rotStick) using this line of code.</p>
  
  <pre><code> myDrive.mecanumDrive_Cartesian(mecStick.getX(), mecStick.getX(), rotStick.getY(), 0);
  </code></pre>
  
  <p>The robot will move in the Y direction (fowards, backwards), and will rotate but won't move in the X axis. Could someone tell me what i'm doing wrong please.</p>
  
  <p>Thanks :-)</p>
  
  <pre><code>public class RobotTemplate extends SimpleRobot {
  
  RobotDrive myDrive = new RobotDrive(1,2,3,4);
  Joystick mecStick = new Joystick(1);
  Joystick rotStick = new Joystick(2);
  
  
  
  public void robotInit() {
  
  }
  
  
  public void autonomous() {
  
  }
  
  public void operatorControl() {
  
      //myDrive.setSafetyEnabled(true);
  
      myDrive.mecanumDrive_Cartesian(mecStick.getX(), mecStick.getX(), rotStick.getY(), 0);
  
      Timer.delay(0.01);
  
  
     }
  
  }
  </code></pre>