Log in

View Full Version : Compressor Sample?


Zuelu562
28-01-2010, 15:50
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

Bryan Herbst
28-01-2010, 15:57
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.

Racer26
28-01-2010, 16:00
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

Zuelu562
28-01-2010, 16:39
Thanks a lot guys. Hopefully this will be useful for other teams.