Programming for mecanum drive based robot

mecanum.txt (1444Bytes)
I am currently working on the programming for a robot that i have already built which will be using a mecaunum wheel based drive. I am rather noobish as far as the programming goes and need any help that i can get. I am trying to figure out how to program the robot to use te mecanum wheels for different movements such as going staright left or straight right. I am currently only setting up the robot to perform a routine predetermined in the programming. My current program will be included

I scanned your code.

You will need to be able to move all 4 motors individually. You only allow for left or right control. To strafe right you will need to rotate the front and rear sets as opposed to the left and right sets. Once you move beyond forward/backward, left/right, strafe left/right, you will need to still be able to control each motor individually instead of in pairs.

experiment

connect the motors to batteries instead of a microcontroller and experiment.