Go to Post remember to keep this simple but yet complex everyone - Team#2057-Vegas [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 Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #3   Spotlight this post!  
Unread 03-02-2010, 21:29
KRibordy KRibordy is offline
Registered User
FRC #1000 (Cybearcats)
Team Role: Mentor
 
Join Date: Mar 2008
Rookie Year: 2006
Location: Valparaiso, IN
Posts: 36
KRibordy is an unknown quantity at this point
Re: Solenoid Breakouts?

I tried getting this to work today; I managed to get a green light on the solenoid breakout, but after defining the solenoid objects, using the Set() function did nothing.


Our code looks something like this.

Solenoid *solenoidOne;
Solenoid *solenoidTwo;

solenoidOne = new Solenoid(1);
solenoidTwo = new Solenoid(2);


Into operator code...

if(joystick->GetTrigger()) {
solenoidOne->Set(true);
solenoidTwo->Set(false);
}
else {
solenoidOne->Set(false);
solenoidTwo->Set(true);
}


I might be doing something completely wrong here. This our first year using pneumatics with the new control system, so I'm a bit confused. The code manages to get into the if statement, but the solenoid commands do nothing. Is there anything glaringly wrong that you can see?
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
multiple solenoid breakouts Wendy Holladay Electrical 2 26-01-2010 09:10
2 SOLENOID BREAKOUTS? Legal? BaByGrL Pneumatics 1 19-01-2010 14:04
Solenoid Question RookieWookiez Pneumatics 2 18-01-2010 18:35
how many analog breakouts do we actually need? team2192 Electrical 6 16-01-2010 11:25
Programming a Solenoid Brigander Pneumatics 4 17-02-2007 14:06


All times are GMT -5. The time now is 18:16.

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