![]() |
Pneumatics & Java
I have just started out controlling pneumatics with Java and had a few general questions.
Thanks, GG |
Re: Pneumatics & Java
Assuming you are using the PCM.
You don't need to code the compressor unless you want it specially off rather than controlled by the pressure switch. The compressor is actually controlled by the PCM. The Roborio just enables it. You don't need to code the pressure switch Not really sure about this one. I think you need a solenoid class in the code to enable the compressor. In any case you need to direct the output to the PCM and the relay ports on the roborio. (Assuming you are using the PCM and not a Spike realy. PWM ports have nothing to do with pneumatics. |
Re: Pneumatics & Java
Thanks for the answers. One other question...
What would be the difference coding wise if I were to use a spike relay vs. PCM. -GG |
Re: Pneumatics & Java
Quote:
In either case, as I read the documentation, you would not use the pneumatics library, but control them as described on the wpilib relay page. If controlling the compressor through a relay, you would connect the pressure switch to a DIO (it's normally closed). If the pressure switch is open, you MUST turn off the compressor and leave it off, both for safety and FRC regs. You MAY turn of the compressor based on other criteria (e.g. a pressure gauge or other loads on the system). |
| All times are GMT -5. The time now is 08:20 AM. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi