View Single Post
  #10   Spotlight this post!  
Unread 17-02-2014, 07:06
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: Help with buttons and periodic tasks

Controlling a device with different buttons makes perfect sense, but you should probably make sure that the code will only respond in one way.

Depending on how comfortable you are with LabVIEW, I'd probably take each sequence, of timed code and use SubVI from Selection to make it into a subVI.
Next, I'd combine the loops, meaning that one loop would read both joysticks combine the results and select one action for the shooter. Then I'd select one subVI to run. This will also make it easier to create new shooter routines.

Greg McKaskle
Reply With Quote