View Single Post
  #6   Spotlight this post!  
Unread 02-02-2011, 18:50
NetPlanet NetPlanet is offline
Registered User
AKA: Michael Bilinsky
FRC #0296 (The Northern Knights)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Montreal, Qc
Posts: 23
NetPlanet is an unknown quantity at this point
Re: Solenoid button toggle

I'm assuming you want to get the button? The button was unbundled from a cluster, and if memory serves me right, it can be found under programming->Cluster->"Unbundle by name". Hook that up to the joystick get and select what button you want to retrieve. That solenoid code wouldn't do much as it is immediately turning off the solenoid after turning it on. This happens so fast you probably wouldn't notice. The 10 mili second timer causes the delay between iterations of the big loop, and not between the two loops that the solenoids are in. Yet even that is really fast. But most importantly, why are you doing this all in your periodic tasks? If I am understanding what you are trying to do, you might want to put the code in the teleop vi for convention's and safety's sake.
__________________
Checkout my new blog! >> www.netopyaplanet.com
~yay