View Single Post
  #3   Spotlight this post!  
Unread 21-11-2011, 08:57
Jared Russell's Avatar
Jared Russell Jared Russell is offline
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,078
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
Re: Inverting the motors through software

Right after this line:

Code:
RobotDrive drivetrain = new RobotDrive(frontleft,rearleft,frontright,rearright );
You would add code like this:

Code:
drivetrain.setInvertedMotor(RobotDrive.kFrontLeft, true);
drivetrain.setInvertedMotor(RobotDrive.kRearLeft, true);
(or use kFrontRight and kRearRight...just remember to invert both motors on the side!)
Reply With Quote