Re: Mecanum Drive
Quote:
You're apparently coming at this from an academic perspective rather than a practical one. The posted code might look "backwards" to you, but it's exactly the way it should be.
|
I think we agree on this: the code Tanis posted can be made to work by inverting the motor commands after they've been calculated or by wiring the motors so that a positive command to the motor controller produces a backwards wheel speed.
Whether or not it "should" be done this way is certainly arguable.
For some people, it might be considerably more intuitive to invert the Y-axis value to make it positive for forward motion, and use equations which produce a positive wheel speed command when the wheel needs to spin in the forward direction.
I have edited my earlier post to remove the word "should" from it and to better convey the point.
|