how would you stop the compressor when teleop is disabled. I tried putting a compressor stop under disable, but it doesn’t restart.:ahh:
All of your outputs will be disabled automatically when the robot is disabled, no need to add any code to disable the compressor.
but it doesn’t. do you think it is electrical and not programming?
It could be wired wrong. How does the compressor get power?
Is the pressure switch wired in series with the compressor? It needs to be fed through the DSC to a Spike. The Spike is disabled by the Crio when the rest of the robot is disabled.
Connecting a Spike’s control input to a general purpose digital output instead of the proper relay pins can do it too.