View Single Post
  #2   Spotlight this post!  
Unread 25-01-2011, 15:21
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
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.
Reply With Quote