View Single Post
  #9   Spotlight this post!  
Unread 20-01-2014, 17:20
Racer26 Racer26 is offline
Registered User
no team
Team Role: Alumni
 
Join Date: Apr 2003
Rookie Year: 2003
Location: Beaverton, ON
Posts: 2,229
Racer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond repute
Re: Can't get motors to spin correct way.

Does this not work?

Code:
class Robot() extends SimpleRobot{
RobotDrive myRobot = new RobotDrive(1,2,3,4);
Joystick leftStick = new Joystick(1);
Joystick rightStick = new Joystick(2);
...
public void OperatorControl(){
while( isOperatorControl() && isEnabled() ){
myRobot.TankDrive(leftStick,rightStick);
}
}

}