Compressor Sample?

My fellows on the programming team and I are currently poking around to see if we can get the compressor working by the end of our meeting (6 est.). We looked in WindRiver for a sample project for getting the compressor functioning and right now we only have last year’s programming manual to work off. Does anyone know of the location of the sample for the compressor if it exists?

Thanks much.
Zuelu

I do not know where the sample code is, but you can simply use relay code to run the compressor.

The only compressor code you need is code to turn the relay on/off, and code to use the pressure sensor.

In WPILib, I believe there is a Compressor class

its constructor takes a relay channel and a digitial in channel


Compressor* theCompressor;

//then later

theCompressor = new Compressor(1,1);
theCompressor->Start(); //i think

Thanks a lot guys. Hopefully this will be useful for other teams.