View Single Post
  #2   Spotlight this post!  
Unread 06-02-2017, 21:46
Hitchhiker 42's Avatar
Hitchhiker 42 Hitchhiker 42 is offline
Roboter
AKA: Mark Lavrentyev
FRC #4557 (FullMetal Falcons)
Team Role: Programmer
 
Join Date: Oct 2015
Rookie Year: 2015
Location: Cromwell, CT
Posts: 532
Hitchhiker 42 has a reputation beyond reputeHitchhiker 42 has a reputation beyond reputeHitchhiker 42 has a reputation beyond reputeHitchhiker 42 has a reputation beyond reputeHitchhiker 42 has a reputation beyond reputeHitchhiker 42 has a reputation beyond reputeHitchhiker 42 has a reputation beyond reputeHitchhiker 42 has a reputation beyond reputeHitchhiker 42 has a reputation beyond reputeHitchhiker 42 has a reputation beyond reputeHitchhiker 42 has a reputation beyond repute
Re: Please Help With Pneumatic Programming

The snippet attached should show the basics of using solenoids. If you have a single solenoid, you want to use the "On" and "Off" values of the enum constant, and if you have a double, use "Forward" and "Reverse".

The example will turn on a single solenoid on the press of button 0 (and turn it off when released). Button 1 controls the forward/reverse state of the double solenoid. If you want to toggle, then read through this thread.
Attached Thumbnails
Click image for larger version

Name:	snip.PNG
Views:	51
Size:	26.5 KB
ID:	21737  
__________________



2016 - NE District Championship Entrepreneurship Award
2016 - Hartford District Industrial Design Award
2016 - Waterbury District Engineering Inspiration Award
Reply With Quote