Thread: joystick button
View Single Post
  #4   Spotlight this post!  
Unread 07-02-2009, 15:37
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: joystick button

Break the problem down. First see if you can figure out how to read the joystick button.

Next use the Motor WPI VIs to set the motor speed to 0 or some nonzero value to control the speed.

Now put the two together so that the button Boolean selects one of two speeds.

If you want the button to be sticky, you need storage such as a feedback node, a shift register, or a variable.

If this doesn't help, ask for specifics on the part above you can't figure out.

Greg McKaskle