View Single Post
  #2   Spotlight this post!  
Unread 15-02-2008, 08:27
SuperBK's Avatar
SuperBK SuperBK is offline
Registered User
AKA: BrianK
FRC #1225 (Amperage Robotics)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Henersonville, NC
Posts: 358
SuperBK is just really niceSuperBK is just really niceSuperBK is just really niceSuperBK is just really nice
Re: COMPRESSOR & PRESSURE SWITCH HELP...

One line of code:

/* Power pump only if pressure switch is off. */
relay7_fwd = !rc_dig_in02;


Put it in both the teleop code (usually Default_Routine) in in autonomous if you are doing autonomous (in User_Autonomous_Code())

Brian
__________________
Brian K
Team 1225 Robotics Mentor

Last edited by SuperBK : 15-02-2008 at 08:29.