View Single Post
  #4   Spotlight this post!  
Unread 11-02-2014, 14:28
danielms853 danielms853 is offline
Lead Programmer 2013&2014 seasons
AKA: Dan S.
FRC #4122 (O-Bots)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2013
Location: NY
Posts: 3
danielms853 is an unknown quantity at this point
Re: NEED Help With turning on the compressor

You could try to see if the relay works

Initializing : Relay compRelay;
compRelay(COMPRESSOR_RELAY_CHANNEL),

and then set it to turn on if you hit a button

if (stick.GetRawButton(PICK_A_BUTTON))
compRelay.Set(Relay::kOn);
else
compRelay.Set(Relay::kOff);

If this works (side car relay light turns on) on the hardware side, but it doesn't turn on, check your hardware. Also, make sure you connected the relay to a relay port, not a pwm port

Once this works, and you know if the compressor works, and you can debug the auto cutoff switch.

P.S. if you're running a 2013 crio image with 2014 wpi, it won't work, we tried.