View Single Post
  #6   Spotlight this post!  
Unread 29-01-2010, 11:01
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: Inverted Turning

Quote:
Originally Posted by Darkknight512 View Post
I flipped the PWM's again just now, the robot just inverts forward and backwards now.
Don't just blindly start swapping things around. Look at how the program has the left and right motors defined, and make sure those are the motors actually being controlled by the relevant PWM outputs. You have to make the code consistent with physical reality.

Then, when you find that a motor is going in the direction opposite the way you think it should, change the "Invert" constant for that motor on the Drive Open vi.

(If you have wired the motors the way I think is most natural, the left motor should not be inverted and the right one should be. It's possible that your wiring is backwards from the way I expect, or perhaps your gearboxes are doing an extra reversal from the actual motor direction. It's not really important which one is which, only that the wheels go in the direction you want them to.)
Reply With Quote