Quote:
Originally Posted by GoldenGollem
Thanks for the answers. One other question...
What would be the difference coding wise if I were to use a spike relay vs. PCM.
-GG
|
Do you want to use a spike relay to control the compressor, a solenoid valve, or both?
In either case, as I read the documentation, you would not use the pneumatics library, but control them as described
on the wpilib relay page.
If controlling the compressor through a relay, you would connect the pressure switch to a DIO (it's normally closed). If the pressure switch is open, you MUST turn off the compressor and leave it off, both for safety and FRC regs. You MAY turn of the compressor based on other criteria (e.g. a pressure gauge or other loads on the system).