Do I need to code the compressor? I got the solenoids to turn on/off; is that it?
That’s it, assuming you’re using the PCM. The PCM will automatically handle running the compressor as long as you have at least one solenoid object talking to it.
You might need to run compressorObject.start() in your robotInit()
Yes - we are using a PCM. Thank you!
You need to wire both the compressor and the pressure switch to their appropriate ports on the PCM. With no pressure switch (or illegal jumper), the compressor will not come on.