Thread: Help Finding VI
View Single Post
  #4   Spotlight this post!  
Unread 05-02-2013, 17:23
chriz4gx chriz4gx is offline
Registered User
AKA: Christopher Villar
FRC #2871 (Beantown Botz)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Boston,MA
Posts: 45
chriz4gx is an unknown quantity at this point
Re: Help Finding VI

(This Isn't a question about Finding the Vi since it was solved but I didn't feel like making another thread for something that is also related to this thread)

I have some questions regarding the code in the example. My team is trying to make it that button 1(trigger) be used as a on/off switch for a motor, so when we press the trigger it turns on our shooter at full speed and then when we click the trigger again it shuts off. How would I program a code that would perform this task of turning on and off motors by clicking the button? Since the example would be placed in the Periodic Task Vi would the code for the on/off switch also be placed here or on the Teleop Vi. Please if possible post an image, I find it much easier to understand.
Reply With Quote