View Single Post
  #10   Spotlight this post!  
Unread 27-02-2010, 23:13
Al3+'s Avatar
Al3+ Al3+ is offline
ARTist
AKA: Anthony
FRC #0840 (Aragon Robotics Team)
Team Role: Programmer
 
Join Date: Oct 2009
Rookie Year: 2008
Location: San Mateo, CA
Posts: 58
Al3+ is a jewel in the roughAl3+ is a jewel in the roughAl3+ is a jewel in the rough
Re: Tank Drive is backwards

Couldn't you also do the following:

drive = new RobotDrive(1, 2);

float leftSpeed = -leftStick.Get();
float rightSpeed = -rightStick.Get();

drive->TankDrive(leftSpeed, rightSpeed);

That's similar to what I've done at the moment. It's not as "proper" as SetInvertedMotor, but it appears to work.
__________________
cout << "Hello, robotics. Goodbye, world." << endl;

"The two-axis accelerometer provided in the kit of parts (shown in the picture below) is a two-axis accelerometer." - WPILib User's Guide
Reply With Quote