View Single Post
  #48   Spotlight this post!  
Unread 21-01-2012, 15:14
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,126
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: Mechanum Wheels?


Programming a mec for basic functionality is trivial, even without the WPI library function.

Just take your driver commands for forward, strafe right, and rotate clockwise, and compute the speed of each wheel as follows:

Code:
front_left  = forward + clockwise + right;
front_right = forward - clockwise - right;
rear_left   = forward + clockwise - right;
rear_right  = forward - clockwise + right;
... then normalize the wheel speeds as necessary before sending the commands to the motor controllers.

Reply With Quote