Quote:
Originally Posted by alopex_rex
What I was thinking was a way of dealing with imperfect results from mecanum, i.e., if simply using WPILib's mecanum drive function results in the robot turning when it's supposed to be straight strafing. When the driver is trying not to rotate (the "rotate" value would be zero), store the current gyro heading. Then have a PID controller that tries to maintain that gyro heading, by setting the "rotate" argument for the function. So the PID would find the value that counteracts any undesired rotation caused by mechanical issues.
|
This is exactly what we did in the past for our mecanum drive, and it worked wonderfully. We didn't have to obsess nearly as much about perfect weight distribution.