View Single Post
  #2   Spotlight this post!  
Unread 04-02-2012, 08:16
MotorHead's Avatar
MotorHead MotorHead is offline
Programming Mentor
AKA: Jeff Beltramo
FRC #1922 (OZ-Ram)
Team Role: Coach
 
Join Date: Jan 2008
Rookie Year: 2006
Location: Concord, NH
Posts: 68
MotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to behold
Re: Joystick - Action Only Once

What you are referring to is called latching a button. Once you press and release a button, it maintains that state until it is pressed again. In the LabView FRC examples, there is an example demonstrating this. You can get to it by starting at the LabView Getting Started Window. Select 'Support' on the left and select 'Find FRC Examples'. You will see folder call 'Joystick'. Under here is an example program demonstrating button latching.

Give it a try and if you have more questions, post back.
__________________
Jeff Beltramo
Team #1922
Concord, New Hampshire

Reply With Quote