View Single Post
  #9   Spotlight this post!  
Unread 24-10-2010, 17:45
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,038
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: How to code Macanum ddrive

Quote:
Originally Posted by buildmaster5000 View Post
You can also use a second joystick. The first joystick will control what I call "move" (forward/ backward relative to the robot's center) and "translate" (left/right relative to the robot's center). Assign the Y axis to move and the X axis to rotate the robot. The second joystick can have its X axis assigned to rotate the robot about its center.
I think there's a typo. You have "rotate" assigned twice. One of them should be strafe, right ?


If you have drivers who are already proficient with a tank drive interface, and you want to take advantage of that, you can use two 2-axis joysticks in standard "tank drive" mode to control the mecanum vehicle.

The left and right joystick Y-axes act just like tank drive to control fwd/rev and turning.

The X-axis on one of the joysticks controls strafing. To avoid inadvertent strafing, you can activate the X-axis command only when a trigger held down.





Last edited by Ether : 24-10-2010 at 17:52.
Reply With Quote