Thread: Trigger buttons
View Single Post
  #5   Spotlight this post!  
Unread 16-02-2009, 11:12
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Trigger buttons

Quote:
Originally Posted by chinckley View Post
We do not know how to read a button.
Use a Joystick Get VI. Wire the appropriate joystick's DeviceRef bundle to it. One of the Get's outputs is a bundle called Buttons. Wire that output to an Unbundle By Name VI. Click on the "Button 1" text and you'll get a menu of possible buttons to read. The output of the Unbundle By Name will be a boolean representing the state of the button.

Now you can use that boolean to choose what value to send to the motor. Do you know how to do that?