Quote:
Originally Posted by will_1359
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.