View Single Post
  #4   Spotlight this post!  
Unread 21-02-2010, 09:33
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
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
you are using Drive, not TankDrive, that example is doing donuts at full speed! I think you meant
myRobot.TankDrive(1.0,1.0);//for forward
instead of
myRobot.TankDrive(-1.0,-1.0);// for forward
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
Reply With Quote