We also use mecanum wheels and last year our program was terrible. We have a pretty decent program this year after i sat down and learned labview. What controls are you using? We are using an xbox controller but it would be very simple to change it to the two joysticks provided in the kit. If you could give me that info I could help you come up with your equations to write for each wheel.
When you say “block” I am going to assume that you are programing in labview. If you are available tomorrow (or today), I can help you program it using remote desktop software if that’s ok with you. Send an email to [email protected] if you are interested.
There’s a Search button at the top of the Functions Palette. It’ll show you where to find anything you can name. In this case, the name of the function you’re looking for is actually Holonomic Drive.
rotation is the, well, rotation of the robot. If you have a joystick that can be twisted, you can use that (for our joystick its axis 4, but it could be different for other joysticks). If your joystick does not support twisting, you will need to have buttons that are wired in (for example, put in a case structure that determines which button is being pressed, that then outputs a 1 or -1 depending on which way you want to rotate it).
My team has been using mecanums for a few years and at the beginning of the year an alumni asked me to make a program that could take full advantage of the mecanum wheels instead of our usual tank drive with trigger strafe boringness. after much thought and many matrices i realized that if you subtract the y axis form the x axis for the front right and back left and add y and x axes for the front right and back left we could make what i like to call omnidrive. it basically made it so that the robot would move in any direction the stick was pointing. after some more finagling i put the controls on two sticks and fixed a few value issues and now we have 2 stick mecanum omnidrive. its pretty difficult to explain but its fantastic to drive. if anyone needs any help i am also available for assistance
That picture should make it fairly obvious. If not, look below. mainJoy is the one used for forward/back and strafing, rotJoy is used for rotation (pretty much like a FPS game, we even wired our camera’s tilt up to rotJoy’s Y axis so it is exactly like the usual FPS controls :)) For best results, use an Xbox/PS3 controller. Remember forward is -1.