View Single Post
  #5   Spotlight this post!  
Unread 10-29-2016, 07:05 PM
bankst's Avatar
bankst bankst is offline
Registered User
FRC #0832 (OSCAR)
Team Role: Mentor
 
Join Date: Feb 2016
Rookie Year: 2012
Location: Roswell, GA
Posts: 9
bankst is an unknown quantity at this point
Re: Pneumatics with command based programming

Going off the assumption you are using a Single solenoid (rather than a double), here is what I would put in 'execute':
Code:
RobotMap.wristSolenoid1.set(true); // open solenoid
And in the 'end' function:
Code:
RobotMap.wristSolenoid1.set(false); // close solenoid
Also make sure in the 'interrupted' function you put:
Code:
 end(); // close solenoid if command is interrupted
If you have any more questions about command-based programming let me know and I'd be more than happy to help.
__________________
2012-Present 832 Oscar (Alumni and Mentor)
Oscar's Website: http://oscarrobotics.meshnet0.com
Reply With Quote