Go to Post The spirit of FIRST lives in all of them[us]. Knowledge is power and the unknown is scarey but in the end the spirit of FIRST will endure. - LSevcik [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

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 24-02-2010, 13:35
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 667
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: need Solenoid help

BTW, forgot to mention one more thing: you need to create a compressor object too. The compressor power should be hooked to a Spike relay and the pressure switch should be hooked to a digital input channel.
Code:
#define PRESSURE_SWITCH_CHANNEL  1
#define RELAY_COMPRESSOR_POWER  1
private:
Compression *m_compressor;
...

// In some constructor
    m_compressor = new Compressor(PRESSURE_SWITCH_CHANNEL, RELAY_COMPRESSOR_POWER);
    m_compressor->Start();

Last edited by mikets : 24-02-2010 at 13:42.
Reply With Quote
  #2   Spotlight this post!  
Unread 24-02-2010, 14:20
Rikard023's Avatar
Rikard023 Rikard023 is offline
Programmer/Animator/Captain/Ninja
AKA: Rikard
FRC #0522 (The Robowizards)
Team Role: Programmer
 
Join Date: Sep 2009
Rookie Year: 2008
Location: Staten Island,NY
Posts: 20
Rikard023 is an unknown quantity at this point
Send a message via AIM to Rikard023
Re: need Solenoid help

thanks that should be egood enough
__________________
"Sharp edges are prone to cause bleeding trust me i know" T.T

http://www.robowizards.com
Reply With Quote
Reply


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
Need help with Festo Solenoid and Labview Team2883 General Forum 3 17-02-2010 12:56
Need help with SMC solenoid valves Ed Law Pneumatics 6 04-02-2010 06:43
Solenoid Help aznbadboixx Pneumatics 0 15-02-2008 15:53
Solenoid Help Brigander Programming 2 14-02-2007 17:13
Need instructions for SMC Single/Double solenoid WHou Pneumatics 5 29-01-2005 08:17


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

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