View Single Post
  #2   Spotlight this post!  
Unread 23-05-2012, 09:24
kinganu123 kinganu123 is offline
Registered User
FRC #1747
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Piscataway, NJ
Posts: 243
kinganu123 is on a distinguished road
Re: Java button help

You never set the speed of the motors once you get the value of the button (true/false)
Not sure how its done in the subsystem programming methods, but in iterative, its:
Code:
if(joystick.getTrigger())
      leftMotor.set(1);
      rightMotor.set(1);
else
      leftMotor.set(0);
      rightMotor.set(0);
__________________
Reply With Quote