|
Re: How to program mecanum wheels with two joysticks
That's easy. Use the Cartesian variety of Holonomic Drive. Connect the X and Y axes of the "translation" joystick to the X and Y inputs of the Drive vi. Connect the X axis of the "rotation" joystick to the Rotation input of the Drive vi.
Make sure you open a 4 Motor Drive in the Begin vi, with all the right PWM channels assigned to all the right motors. Depending in how you decide to wire the motors, you will probably need to set two of the Invert inputs to True, but don't just guess. Run the robot forward and make sure all the motors go the direction you expect them to. Once that's done, double-check with rotation. Then you can try strafing.
|