View Single Post
  #28   Spotlight this post!  
Unread 22-10-2010, 13:02
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: Chainless Mecanum Drive

Quote:
Originally Posted by JesseK View Post
For robot-centric steering, it is that simple. For field-centric steering (where pushing away on the joystick moves the robot away from the driver's station regardless of robot orientation) it can get quite complex.
It's a bit more work, but not at all complex.

And it's no more complex for mecanum than it is for nonadrive.

To do field-centric control, you must know the angle of the robot with respect to the field (using a gyro for example).

Use this angle to do a 2D coordinate rotation on the joystick X and Y inputs* . Then use these rotated values (plus the unmodified Z joystick value*) as inputs to your robot-centric code.


*assuming X and Y represent the strafe and fwd/rev commands, and Z represents the spin command






Last edited by Ether : 22-10-2010 at 14:14.