View Single Post
  #5   Spotlight this post!  
Unread 21-02-2010, 09:54
roknjohn roknjohn is offline
Registered User
#1051
Team Role: Engineer
 
Join Date: Jan 2003
Location: Marion
Posts: 31
roknjohn is an unknown quantity at this point
Re: Tank Drive is backwards

Quote:
Originally Posted by whatabouteve View Post
the colors mean nothing. it basically means the flow of electricity.
you shouldn't judge the movement of the robot by the colors.
i would change the power to the motors that way when u run autonomous, you have code like...
myRobot.Drive(1.0,1.0);//for forward
instead of
myRobot.Drive(1.0,-1.0);// for forward

this makes it easier from a coding standpoint
If memory serves me correctly, on the spikes and victors, the LEDs glowed green for normal polarity and red for reversed polarity. As such, we've always wired our motors and control logic to match. It just made things simpler to troubleshoot, code, etc.

So, please correct me if I'm wrong.. If we used the RobotDrive class, we have to think of "forward" as the "negative" direction? Sounds just like the economony?
Reply With Quote