View Single Post
  #6   Spotlight this post!  
Unread 10-30-2016, 05:54 AM
Yildirim Yildirim is offline
Registered User
FRC #6429
 
Join Date: Oct 2016
Location: Turkey
Posts: 7
Yildirim is an unknown quantity at this point
Re: Pneumatics with command based programming

Quote:
Originally Posted by bankst View Post
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.
Thank you very very much
Reply With Quote