Thread: Drive Issue
View Single Post
  #2   Spotlight this post!  
Unread 06-02-2013, 12:57
notmattlythgoe's Avatar
notmattlythgoe notmattlythgoe is online now
Flywheel Police
AKA: Matthew Lythgoe
FRC #2363 (Triple Helix)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Newport News, VA
Posts: 1,722
notmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond repute
Re: Drive Issue

Quote:
Originally Posted by Mr.Roboto3335 View Post
Our motors are backwards and my team does not want to reverse the wiring. How do I reverse the motors with Java?
An easy way to do it is just put in the opposite power level. So if you want 0.5 power put in -0.5 instead.

Quote:
public void drive(double leftPower, double rightPower) {
robotDrive.tankDrive(-leftPower, -rightPower);
}
Reply With Quote