View Single Post
  #2   Spotlight this post!  
Unread 29-01-2013, 14:04
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Error with the RobotDrive

You have several options for correcting your problem. The easiest one is simply to swap the left and right motor controls.

Are you using tank drive or arcade drive? If tank, you might have your joysticks swapped. Press a button on the left one and make sure the indicator on the Driver Station display shows that to be the joystick you expect it to be. If they're reversed, just drag them to the proper place in the Setup list.

You could negate the X axis in the code if you're using Arcade drive.

However, the correct thing to do is to go through the motors one by one and make sure the wiring matches the programming. If you run one motor at a time, is it the motor you expect to run? Does it run in the direction you expect it to? There are several places both in hardware and software where things can get swapped.
Reply With Quote