Go to Post it's not the bot that makes the team great, it's the team that makes the bot great. - alicen [more]
Home
Go Back   Chief Delphi > Technical > Electrical
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
  #1   Spotlight this post!  
Unread 15-02-2014, 11:40
K519_1325's Avatar
K519_1325 K519_1325 is offline
Registered User
AKA: Karan Guglani
FRC #1325 (Inverse Paradox)
Team Role: Alumni
 
Join Date: Feb 2013
Rookie Year: 2012
Location: Mississauga Ontario
Posts: 16
K519_1325 is an unknown quantity at this point
Relay Signal not working

We are having problems with our relays. We used to having our relays working, but they have all suddenly stopped working, on both different robots.

The spike is getting power, as there is the LED indicator is orange. The brand new VEX Pro spike is connected to our compressor, with the PWM Cable running to Relay 3 on the digital sidecar. We have the ribbon cable running form the digital sidecar to the module in slot 2 on the cRio, with the terminal screws in. The code on for the spike is as follows. The code below is only for the spike and the joystick.

Code:
class RobotDemo : public IterativeRobot
{
Relay *manualCompressor;
Joystick *primaryController; 
public: 
RobotDemo(){
manualCompressor = new Relay(3);
primaryController = new Joystick(1);
}
void RobotDemo::TeleOpPeriodic(){ 
if(primaryController->GetRawButton(6)){ 
manualCompressor->Set(Relay::kForward);
}
else if(primaryController->GetRawButton(5)){ 
manualCompressor->Set(Relay::kReverse);
}
else{ 
manualCompressor->Set(Relay::kOff);
}
}
Every subsystem that runs off of a victor on our robot (i.e. our drivetrain) work just fine. I even put an indication on the Smart Dashboard that told me when the button assigned to the spike was pressed. I put that code inside the if statement for the spike, so I know that the if statement is executing.

We have no idea what is wrong with our relays, and would really appreciate some help and ideas.

Thanks,
__________________
http://www.team1325.com
 


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:12.

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