View Single Post
  #2   Spotlight this post!  
Unread 28-04-2016, 16:20
FrankJ's Avatar
FrankJ FrankJ is offline
Robot Mentor
FRC #2974 (WALT)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2009
Location: Marietta GA
Posts: 1,899
FrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond repute
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.
__________________
If you don't know what you should hook up then you should read a data sheet

Last edited by FrankJ : 28-04-2016 at 16:22.
Reply With Quote