Quote:
Originally Posted by parsodark
Basically, its a tank drive, with both x axis controlling the sideway movement.
Both joysticks up : move forward
Both joysticks down : move backward
One up, one down : rotation
Both left/right : sideway movement
We used it in other competitions (Vex) and we found it to be way more intuitive
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));
|
That's interesting that your team finds it more intuitive that way. The 2 years that we had mechanum wheels on our robot we thought one stick was extremely intuitive and it was amazing how easy it was to step up to the robot and drive it for the first time. Ours was:
Forward - drive forward
Left - strafe left
Right - strafe right
Backwards - drive backwards
Twist - rotate
Do you not have a joystick that has a twist motion?