Go to Post I feel that the only friends I have ever had are people I know through FIRST. Being on a team gave me the sense of belonging that I thought I didn't even need. FIRST has given me a great life that I never thought I would have. - Alaina [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 08:23 AM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi