View Single Post
  #2   Spotlight this post!  
Unread 06-02-2014, 18:15
Team3266Spencer's Avatar
Team3266Spencer Team3266Spencer is offline
Team Captain and Lead Programmer
AKA: Spencer Lanman
FRC #3266 (Robots-R-US)
Team Role: Programmer
 
Join Date: Oct 2011
Rookie Year: 2012
Location: Richmond, Indiana
Posts: 280
Team3266Spencer is an unknown quantity at this point
Re: Pressure Switch Not Working?

The Compressor class provided by WPI should handle everything for you.
Initialize it like this:

new Compressor(int pressureSwitchChannel, int compressorRelayChannel)

and then call the method start() to turn it on. It will automatically turn itself off when the pressure switch switches.

If it's still not working it could be a wring issue or the pressure switch is in the wrong place. Double check there's no short circuits in the wires for your pressure switch. The pressure switch should be located before your 60 psi working air regulator.

http://www.wbrobotics.com/javadoc/ed...ompressor.html
__________________
2012: Buckeye Regional, Queen City Regional, Human Player
2013: Queen City Regional, Buckeye Regional, Crossroads Regional
Shooter Operator
2014: Crossroads Regional, Queen City Regional
Catapult Operator
2015: Georgia Southern Classic Regional (Winner), Queen City Regional
Chainsaw Operator
Want to talk? TeamSpeak: team3266.noip.me