Quote:
Originally Posted by chigskonkwo
We chose Mecanum drive on our code, we didn't code each specific motor.
|
Luckily it's still pretty simple.
In the code, your programmer had to pass (I'm not our teams programmer, but its something along these lines) either Victor/Jaguar objects, or integers representing PWM ports. For the Mecanum drive class, these will correspond to left motor 1, left motor 2, right motor 1, right motor 2, or something along these lines.
If you find the order that you list the inputs, you can ascertain which PWM should control what motor.
If you want to brute force it, you can always randomly swap PWM's until all the wheels are working correctly. With 4 wheels, there aren't very many combinations of PWM's you can have. Move around PWM's until pushing forward on the joy moves them all forward, back moves back, turns are correct, and strafing is proper.