View Single Post
  #1   Spotlight this post!  
Unread 04-02-2014, 14:49
blackdiamond377 blackdiamond377 is offline
Registered User
FRC #2928
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2012
Location: Seattle WA
Posts: 2
blackdiamond377 is an unknown quantity at this point
Well, I guess Jon beat me to it, but I do actually have some input on the left/right mix up.
If you pass in a joystick to the built in arcade drive method you will have that problem. I'm not entirely sure why, but you can fix it by passing in the y and x axis as speed and rotation, respectively, yourself.

Something like this should work:

speed = joy.GetY()
rot = joy.GetX()
robotDrive.ArcadeDrive (speed, rot)