|
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
|