Here is what your command sends to mecanumDrive from your DriveTele command:

```
Robot.mec.mecanumDrive(
(oi.stick.getLeftJoyX()+oi.stick.getLeftJoyY())/2,
(oi.stick.getLeftJoyY()-oi.stick.getLeftJoyX())/2,
-(oi.stick.getLeftJoyY()-oi.stick.getLeftJoyX())/2,
-(oi.stick.getLeftJoyX()+oi.stick.getLeftJoyY())/2);
```

this in turn calls:

```
public void mecanumDrive(double FL, double RL, double FR, double RR) {
frontLeftMotor.set(-FL);
rearLeftMotor.set(-RL);
frontRightMotor.set(-FR);
rearRightMotor.set(-RR);
}
```

at first glance it is obvious that even if oi.stick.getLeftJoyX() is 1.0 and your Y is 0.0, a pure strafe is going to genrate 0.5 for all motors (probably your slowness problem).

In the case of strafe right, X will be 1.0 so your 4 values become

FL=0.5

RL=-0.5

FR=+0.5

RR=-0.5

You then negate all of these for the motors so the motors see

frontLeft -0.5

rearLeft +0.5

frontRight -0.5

rearRight +0.5

Because those on the right side are likely driving in reverse on positive voltage this is most likely

frontLeft toward robot rear 0.5

rearLeft toward robot fore 0.5

frontRight toward robot fore 0.5

rearRight toward robot rear 0.5

which unfortunately is the way to rotate wheels for strafing left.

So as Ether says, change the +/- in front of all your getX() calls in your DriveTele and this will solve the problem.

To fix your speed issue you need to do something different than (X + Y)/2.0.

(X+Y)/2.0 gives you 1.0 only on the diagonals, but not straight ahead or to the sides.

If you have studied polar math in school, you should know that a better formulation for what you are trying to do is to combine the two into a magnitude with sqrt(x*x + y*y) via the Pythagorean theorem. This way straight left calculates sqrt(1+0) = 1.0. And sqrt(0.5*0.5 + 0.5*0.5) = 0.5. But then to get your signs right, you have to compensate. based on the sign of x and y.

I would recommend that you instantiate a RobotDrive object in your subsystem and call the mecanumDrive_Cartesian(x,y,rot,gyro) function-- you can pass 0 in for rotation and the gyro. Then you can just pass getX and getY from your stick.

```
public class Mecanum extends Subsystem {
...
SpeedController frontLeftMotor = new Jaguar(0);
SpeedController frontRightMotor = new Jaguar(1);
SpeedController rearLeftMotor = new Talon(2);
SpeedController rearRightMotor = new Jaguar(3);
RobotDrive myDrive;
...
public Mecanum() {
//Constructor-- called when we do new Mecanum() in Robot
myDrive=new RobotDrive(frontLeftMotor,rearLeftMotor,
frontRightMotor,rearRightMotor);
}
public void mecanumDrive(double FL, double RL, double FR, double RR) {
frontLeftMotor.set(-FL);
rearLeftMotor.set(-RL);
frontRightMotor.set(-FR);
rearRightMotor.set(-RR);
}
public void mecanumViaRobotDrive(double x, double y, double rotation, double gyro)
{
myDrive.mecanumDrive_Cartesian(x,y,rotation,gyro);
}
```

Then in DriveTele

```
public void execute() {
Robot.mec.mecanumViaRobotDrive(oi.stick.getLeftJoyX(),oi.stick.getLeftJoyY(),0,0);
}
```

Good luck!