View Single Post
  #2   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: 674
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