Quote:
Originally Posted by thinker&planner
Being the driver, and liking tank style, I requested that we control (not drive) our robot with tank-style controls. We used an Xbox controller and had the left-y control the left side forward/backwards and the right-y for the right side. The strafing was controlled by the triggers, which were analog on the controller that we used. If we do it again, I would use two joysticks in a tank formation and modify the triggers to be analog (or use the x-axis of one of them for strafing).
The trick was averaging in the strafing at the same time, which our amazing programmer had a true "Eureka!" moment when she figured it out. Her method provides a more "natural" way (if you naturally like tank-style controls) for mecanum the full mobility of mecanum still retained.
I'll try to find the algorithm and put it here soon.
|
If you could possibly post the code for that, that would be fantastic. I've been looking for a tank drive solution for mecanums and have yet to find code for a setup like it.