|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Pneumatics & Java
I have just started out controlling pneumatics with Java and had a few general questions.
Thanks, GG |
|
#2
|
||||
|
||||
|
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. Last edited by FrankJ : 04-28-2016 at 04:22 PM. |
|
#3
|
||||
|
||||
|
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 |
|
#4
|
|||||
|
|||||
|
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). Last edited by GeeTwo : 04-29-2016 at 04:15 PM. Reason: fix NO to NC on pressure switch |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|