This is Team 2502's Pneumatics code.
http://github.com/keehun/TeamRobotCo...Pneumatics.cpp
It's somewhat complicated but that's because we have it multithreaded and the kicker is programmed to automatically retract after half a second.
Otherwise, the constructor section is probably the most important. If you want a clear cut simple example, let me know!
Thanks,
Keehun
__________________
For by grace you have been saved through faith, and that not of yourselves; it is the gift of God, not of works, lest anyone should boast. -- Ephesians 2:8-9
2010: Quarter Finalist (MN 10,000 Lakes)
2010: Website Award (MN 10,000 Lakes)
2009: Quarter Finalist (MN 10,000 Lakes)
2009: GM Industrial Award (MN 10,000 Lakes)