View Single Post
  #4   Spotlight this post!  
Unread 23-01-2011, 17:00
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 590
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: Robot going backwards!

Quote:
Originally Posted by will_1359 View Post
I've put the line tracking code into my robot, but it keeps going backwards whether I invert the motors or not. Could this be because it uses arcadeDrive while the rest of my code uses tankDrive? If so, how can I fix it? If not, what else could it be and how can I fix it?
Are you sure that removing the code to invert the motors didn't change the robot direction? You can also change the sign of the computed robot speed in the code and that should also flip the direction.

The use of the arcade vs. tank functions don't stick, they just set the speeds at that moment based on the parameters passed.
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
Reply With Quote