Quote:
Originally Posted by AWoL
Eh, close enough. The effect is the same. My code actually has more to do with scaling the speed by the amount of joystick input on the x axis.
|
Let me try again then:
For the same hypothetical mecanum drive, no feedback is used when setting wheel velocities. Instead, the joystick outputs are scaled as follows:
Output x = joystick.X
Output y = (joystick.y)/2
This causes the forward top speed to be slowed down so that the strafing speed is never exceeded in any direction.