|
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
|