My team is trying to run out pneumatics system, but we are running into a problem with our PCM. We have our compressor plugged in along with the other necessary components, but the compressor light is not turning on. The status light does turn green when we enable the Robot, but the compressor light remains dim. We know that the code is calling the compressor to enable, and no errors are printing to the driver station. How can we fix this so we can run our pneumatics?
Hi,
You don’t need to create a compressor object in your code, instead you need to create a Solenoid or DoubleSolenoid object in your code, WPILib will take care of the rest and run the compressor for you!
I’ve done that in the other sections and the compressor code still isn’t running. The solenoids are created when our subsystem containing the solenoids is initialized, and still nothing on the compressor LED