Thread: Arcade Mecanums
View Single Post
  #1   Spotlight this post!  
Unread 16-02-2011, 08:44
dmitch's Avatar
dmitch dmitch is offline
Chief Head Electrical Guy
AKA: Daniel Mitchell
FRC #1997 (Stag Robotics)
Team Role: Programmer
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Bishop Miege High School
Posts: 142
dmitch is a jewel in the roughdmitch is a jewel in the roughdmitch is a jewel in the roughdmitch is a jewel in the rough
Arcade Mecanums

I was wondering how you could code an arcade drive with mecanum wheels? Basically, we want forward on both to be forward, left on both to strafe left, and then forward on left back on right to be turn right, and vice versa for all of these.

I was thinking that for left and right, and front and back, you could half the joystick values and then add them, and feed the subsequent number to the x and y inputs on the mecanums vi. However, I am stumped on the rotation. Any helpo would be greatly appreciated thank you!
__________________
Reply With Quote