Understanding Mecanum Drive

Hello Everyone,

I have a technical question regarding programming a mecanum drivetrain. Looking at wpilib one would setup the mecanumDrive_Polar method by using a joystick’s Y axis for both the magnitude and direction parameter. How does the method determine if the joystick is moving right or left if it’s only sampling the Y axis?

Thank you!

That looks like an error to me. I think the second getY should be getX.

Thanks Matt and Joe.

The example has been updated.

Brad