Quote:
Originally Posted by luckof13
You need to program the cRIO to turn on the compressor when the switch is closed, and off when it is open.
|
WPILib makes this real easy.
Code:
Compressor compressor = new Compressor(Pressure switch channel, Compressor relay channel);
compressor.start();
Is all you need if you're using Java. C++ should be similar, if not identical.