View Single Post
  #2   Spotlight this post!  
Unread 22-02-2010, 15:32
BenThompson BenThompson is offline
Registered User
FRC #0237 (Sie-H20-Bots (See-Hoe-Bots) [T.R.I.B.E.])
Team Role: Programmer
 
Join Date: Sep 2006
Rookie Year: 2007
Location: Watertown, CT
Posts: 18
BenThompson is on a distinguished road
Send a message via AIM to BenThompson
Re: Programming Compressor C++

All you need to do is instantiate a compressor object with the pressure switch and compressor ports, then start it. For example, you might do:

Compressor *compressor;
compressor = new Compressor(1,2);
compressor->Start();