Log in

View Full Version : Pneumatics Control module programming


mpirringer
03-02-2015, 20:43
Hi,

I am looking for an example to program this years PCM Do you treat them as doubesolenoids like in prior years and how do you determine the channel this year. The roborio says the pcm id is 0. need to address solenoid 1 and 2 as double stroke

TIA

Ben Wolsieffer
03-02-2015, 20:47
The code for interacting with solenoids should be exactly the same as prior years except the channel numbers start from 0. Another thing to note is that you do not need to create a compressor object (unless you want manual control), as the PCM automatically starts (and stops based on the pressure switch) the compressor when a solenoid is created.

The only time you need to worry about the PCM id is if you have multiple PCMs.

ozrien
03-02-2015, 21:18
I think you'll find your answer in the software documentation here...
http://wpilib.screenstepslive.com/s/4485/m/13809/l/219351-pneumatics-control-module
..and...
http://wpilib.screenstepslive.com/s/4485/m/13810/l/292213-c-java-porting-guide-2014-to-2015