|
Re: Parameters don't seem to do what they say (mecanumDrive)
In addition to programming, verify your wiring and mechanical setup.
One issue you need to remember that might cause this is that because the motors are mounted back-to-back rather than pointing the same direction, if you put all the motors driving in the "forward" direction, one side will go forward and the other in reverse. Which goes forward depends on whether there is an even or odd number of stages in your gearbox. This is not a mecanum issue; it also affects skid-steer/tank drive.
It would also be helpful to write a quick test robot that allows you to drive each motor forward or reverse or stop and ensure that your signals are getting to the correct motor, in the correct direction. Because there are 12 settings, this is probably more easily based on the keyboard than a joystick-style controller. This will help you distinguish between errors in how mecanumDrive_Cartesian() is being called and errors in motor assignment and orientation.
__________________
If you can't find time to do it right, how are you going to find time to do it over?
If you don't pass it on, it never happened.
Robots are great, but inspiration is the reason we're here.
Friends don't let friends use master links.
|