Can’t use pneumatics while compressor runs

When I enable the robot, the compressor starts running right away and I can operate the double solenoids perfectly fine. When the psi drops below 100, the compressor starts running. The problem is that once the compressor starts running, we can’t use the solenoids until it stops running. This makes no sense to me, especially since 3 years ago we were able to use them while the compressor ran. I looked at the previous programmer’s code from deep space and it looked like we were doing the same thing with the compressor code. Is there anything special I have to do to be able to operate my cylinders while the compressor runs?

Assuming this is your github repository, you may want to look at the compressor documentation. Because there are now two FRC legal PCMs, you now have to specify the type in the Compressor constructor.
So instead of using new Compressor(0);, you now have to use new Compressor(0, PnematicsModuleType.CTREPCM);

I’m not certain if this is the problem, but might be worth trying.

Building off of @Berkeli’s assumption, you don’t need to explicitly create a Compressor or PCM object. The compressor should run in closed-loop mode as soon as there’s a Solenoid(or DoubleSolenoid) object created.

1 Like

Thanks, I can try that. Yeah, thats my code.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.