Go to Post No really though, a robot game with rules similar to Risk. This would combine FIRST, Battlebots, and US Government... - Betty_Krocker [more]
Home
Go Back   Chief Delphi > Technical > Pneumatics
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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...
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 16:24.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi