|
Re: Help Please!(Rookie Team)
if (!airCompressor.getPressureSwitchValue())//check if the compressor is working
{
airCompressor.setRelayValue(Relay.Value.kOn);
}
else
{
airCompressor.setRelayValue(Relay.Value.kOff);
}
^^^ You also need this in the continuous function
__________________
"In theory there is reality, but in reality there is no theory" - Erich Keane (FRC 2010 Build Season - Team 3210)
|