Go to Post The ChiefDelphi forums are more than just a place for people to kill time and engage in some chit chat. - Karthik [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
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
  #1   Spotlight this post!  
Unread 21-02-2010, 12:14
scorpions980 scorpions980 is offline
Registered User
FRC #3017
 
Join Date: Jan 2010
Location: new york
Posts: 11
scorpions980 is an unknown quantity at this point
problem with programming solenoid vales

our team is currently using the pneumatic system for the arm and we are having problems with the double solenoid valve. the module is connected to slot 8. and the sides are connected to the first and second channel. the compressor is operated by a external battery and there are 4 cylinders connected in a chain which is connected by surgical tubing to the pneumatics which is connected by tubing to the piston. i dont see a problem with the wiring because the lights on the solenoid alternate when i press the button i set it to. and it works manually with the blue button on the solenoid. the code is very simple as well

Solenoid * compress;
Solenoid * decompress;

//its initialized inside the default robot
compress = new Solenoid (1);
decompress = new Solenoid (2);

//inside is operator loop
if (leftstick->GetRawButton(6)){
compress->Set(true);
decompress->Set(false);}
else{
compress->Set(false);
decompress->Set(true);}

can someone tell me a way to make the piston fire and not just make the lights on the solenoid switch on and off? thank you.
//
i am sure everything is connected corrected and yes it was enabled there was nothing that we could tell was wrong
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Limit switch to solenoid problem TPekarjr Electrical 4 28-01-2010 20:17
solenoid programming holty531 Programming 0 10-02-2008 16:17
problem connecting the solenoid arpitshah Pneumatics 1 21-01-2008 08:47
Programming a Solenoid Brigander Pneumatics 4 17-02-2007 14:06
Solenoid Programming duckshepherd Pneumatics 1 17-02-2003 09:15


All times are GMT -5. The time now is 13:46.

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