View Single Post
  #4   Spotlight this post!  
Unread 08-02-2012, 11:37
sand500 sand500 is offline
Registered User
FRC #3540 (Wildcat Robotics)
 
Join Date: Jan 2011
Rookie Year: 2011
Location: United States
Posts: 81
sand500 is an unknown quantity at this point
Re: Can't Get Compressor to Run

Quote:
Originally Posted by jp1247 View Post
Sand500, for the compressor, you really shouldn't use your own code for controlling the spike...WPILIB has built in methods handling the compressor. You should be doing something like:
Code:
Compressor compressor = new Compressor(pressureswitch INT, relay INT);
Then in robotInit:
Code:
compressor.start();
And your done. It handles all the safety hierarchies and controls the compressor based on the pressure switch which you MUST have in order to compete.

Correct any parts if they look incorrect anyone.
we were just testing our spike with our comressor. I had no idea there was a compressor class, thanks for the info.