View Single Post
  #9   Spotlight this post!  
Unread 19-02-2012, 16:43
jase728 jase728 is offline
Registered User
AKA: Jase728
FRC #3210 (Falcons)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Hillsboro
Posts: 11
jase728 is an unknown quantity at this point
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)
Reply With Quote