Quote:
Originally Posted by parsodark
Here's the code itself (in a stripped down version):
frontLeft->Set(-stick.GetRawAxis(2)+stick.GetRawAxis(1));
backLeft->Set(-stick.GetRawAxis(2)-stick.GetRawAxis(1));
frontRight->Set(stick.GetRawAxis(4)+stick.GetRawAxis(3));
backRight->Set(stick.GetRawAxis(4)-stick.GetRawAxis(3));
|
The above code is not kinematically correct. You are not taking full advantage of the 3DoF capability of the mecanum wheels.