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!