How to code Vex mecanum Wheel

My team and i are trying to code the mecanum wheels but it not working can you help me?

I’m not the coder for our team so I cant be that much of a help but essentially the concept (or at least the preferred layout for our team) is to have on the left joystick have these inputs:
Up = forward, exactly the same as a regular drive.
Down = backwards, again exactly the same as a regular drive.
Left = strafe left, front left and back right motors backwards, front right and back left motors forwards.
And right = strafe right, front left and back right are forwards, and back left and front right are backwards. An easier way to visualize it is like this: turn your robot to the right and imagine the left side is the front of the robot and the right side is the back, strafing is the exact same as going forward and backwards just it’s going side to side. So if you turn your robot to the right and pretend the left side of the robot is front, and the right side is back then that might help you understand the concept a bit easier. And as for the right joystick all ours does is turn left and turn right. So its kinda like if you are playing a fps game with an xbox remote, but without look up and look down. Anyways hope this helps.

3 Likes

There are numerous great articles on this website explaining mecanum wheels

Wiki: https://www.vexforum.com/t/wiki/67132/33

https://www.vexforum.com/search?q=Programming%20mecanum

Vex KB: https://kb.vex.com/hc/en-us/articles/360035952771-Creating-a-V5-Drivetrain

4 Likes