View Single Post
  #10   Spotlight this post!  
Unread 22-01-2016, 08:46
mshafer1 mshafer1 is offline
Programming Mentor
AKA: Matthew Shafer
FRC #3937 (Breakaway)
Team Role: Mentor
 
Join Date: Jan 2015
Rookie Year: 2008
Location: Arkansas
Posts: 55
mshafer1 is an unknown quantity at this point
Re: How to Invert the motors?/ Programming joystick Buttons? LabVIEW

If the problem still persist, please post screen shots of begin and teleop and pictures of the wiring.

You also asked about programming with the buttons. A few things to keep in mind:
The trigger on the Attack 3 is button 1 (the others are labeled)
When you index the array of button values to from the joystick_get_values vi (use Index Array under the array palette), the index is 0 based and the buttons are 1 based, so subtract 1 from the desired button number to get the required index.
Buttons are true the entire time they are pressed, so if desiring for a button to trigger an action (as opposed to the action goes while the button is pressed) consider using the edge detector from Breakaway's memory library (http://frclabviwtutorials.com/memory...y/#description).
Reply With Quote