Compressor issue

We’re having a weird problem with our compressor that we can’t seem to figure out. Our compressor refuses to turn on. What we’ve done in attempt to remedy the issue is to command each of the individual components individually (the relay and the pressure switch). The relay works, and turns on the compressor, as expected, when it’s set to ‘on’. The pressure switch returns false when without pressure (in it’s normal state), and presumably true when at max (we just manually connected and disconnected the wires to it). Does anyone have any idea what the issue is? I’m not sure what it is, but I think the pressure switch values may need to be negated. We’re initializing the compressor system like this:

 compressorPointer = new Compressor(14, 1); //1 is the Digital I/O, and 14 is the Relay port
		compressorPointer->Start();

The spike shows a solid orange/yellow light when we do so, but that’s it. We’ve tried switching the input (1,14 to 14,1) which didn’t help at all. We’ve also tried putting compressorPointer->Start(); at the beginning of teleop (outside of the while loop) and at the beginning of autonomous. The switch is wired to the signal and negative pins on port 14 on the DIO on the sidecar. We’ve tried multiple sensors. Any ideas are welcome. Thanks!

compressorPointer = new Compressor(14, 1); //1 is the Digital I/O, and 14 is the Relay port
		compressorPointer->Start();

Relay 14?? There are only 8 relay outputs on the Digital Sidecar.

… sorry… I posted the wrong code. We tried everything we could think of, including switching those around. Every time except our last desperate attempt, it was (1,14), not (14,1).

Try it at 1,1 and move your wires. Perhaps you are not counting the ports correctly and putting the wire tin the correct place. it is easy to do.

You should leave it at (14, 1). The first number is the pressure switch input, the second is the relay channel.

It is possible that you have a bad port on your digital sidecar. Try different ports as suggested above and try it again.

Ours compressor is working fine with the (14,1) parameters. Make sure that your relay cable is wired correctly. We had a problem with the signal and ground wire being reversed.

HTH,

Mike