Go to Post The gearbox can be anything, just as long as it weighs less than 0 lbs, and yes, I'm talking about negative weight here. - NoodleKnight [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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 20-02-2010, 17:18
Twisted eric's Avatar
Twisted eric Twisted eric is offline
Registered User
FRC #0581
 
Join Date: Jan 2010
Location: San Jose
Posts: 54
Twisted eric is an unknown quantity at this point
Re: solenoid problems

if (fluffy.getPressureSwitchValue()) {
fluffy.setRelayValue(edu.wpi.first.wpilibj. Relay.Value.kOff);
} else {
fluffy.setRelayValue(edu.wpi.first.wpilibj. Relay.Value.kOn);
}


this will i believe to turn off the compressor
(have not yet tried it yet)

also is the only import we need is

import edu.wpi.first.wpilibj.solenoid;

right


thanks.

Last edited by Twisted eric : 20-02-2010 at 17:20. Reason: revision
Reply With Quote
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Solenoid actuation problems Alexandstein Pneumatics 4 17-02-2010 21:39
Solenoid not firing off Solenoid Breakout spooncwru Pneumatics 2 30-01-2010 17:46
single solenoid seanl Pneumatics 4 18-02-2007 02:32
Programming a Solenoid Brigander Pneumatics 4 17-02-2007 14:06
Labview problems and code problems ajsetter Programming 25 18-01-2006 17:07


All times are GMT -5. The time now is 11:02.

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