Go to Post Nutritionally speaking I didn't get enough (MOE) green in my FIRST diet this year! - Mark McLeod [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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.
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 02:49.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi