Here is a java Doc for RobotDrive.
Specifically, I would recommend looking at:
- The constructors
- mecanumDrive_Cartesian(double x, double y, double rotation, double gyroAngle)
- mecanumDrive_Polar(double magnitude, double direction, double rotation)
- setInvertedMotor(RobotDrive.MotorType motor, boolean isInverted)
And here is one for the Joystick class
Specifically, I would look at
I haven't coded mecanum, but I think you need 4 motors assigned to your RobotDrive instead of 2.
Also, try using the "search" button up top
Where I found this similar thread