View Single Post
  #3   Spotlight this post!  
Unread 07-02-2012, 21:11
jp1247's Avatar
jp1247 jp1247 is offline
No the cRio does not like aluminum!
FRC #1247 (ROK BOT)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2010
Location: New Hampshire
Posts: 60
jp1247 is an unknown quantity at this point
Re: Can't Get Compressor to Run

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.
__________________
"No, you can't use the Kinect to do pelvic thrusts."

Last edited by jp1247 : 07-02-2012 at 21:11. Reason: Forgot semicolins...