Why is your
Code:
//compressor.start();
commented out in robotInit()? You need this to enable the compressor.
The way you have it in operatorControl(), the compressor will start every time you iterate through your while loop. Try moving this statement outside of the loop.
Ensure that your pressure switch is in DIO port 5 and your compressor relay is in Relay port 5.