View Single Post
  #6   Spotlight this post!  
Unread 22-03-2013, 20:18
joelg236 joelg236 is offline
4334 Retired Mentor & Alumni
AKA: Joel Gallant
no team
Team Role: Mentor
 
Join Date: Dec 2011
Rookie Year: 2012
Location: Calgary
Posts: 733
joelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond repute
Re: Joystick Command not working

Quote:
Originally Posted by otherguy View Post
Code:
public class TankDrive extends Thread {
  Joystick USB1 = new Joystick(1);
  RobotDrive drive = new RobotDrive(2,3,1,4);

  public void run(){
    while(true){
      drive.tankDrive(USB1.getRawAxis(2), USB1.getRawAxis(4));
    }
  }
}
My bad. Looked different without formatting.
__________________
All opinions are my own.
Reply With Quote