View Single Post
  #5   Spotlight this post!  
Unread 21-07-2014, 17:59
NotInControl NotInControl is offline
Controls Engineer
AKA: Kevin
FRC #2168 (Aluminum Falcons)
Team Role: Engineer
 
Join Date: Oct 2011
Rookie Year: 2004
Location: Groton, CT
Posts: 261
NotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond repute
Re: Spike relay help

Here are some simple but important troubleshooting steps in addition to the great responses so far. Do make sure you have communication to the Relay, and proper power wired to it and that you are using the proper relay channel to control your spike. When the robot turns on, the LED on the spike should be orange, signaling that it has power.

Can you paste the code of your call to the constructor as well?

Again, you are only trying to set the value of the relay in either Teleop, Auto, or Test modes correct, while the robot is enabled?

Relay outputs are non-active while the robot is disabled. Are you also sure that you are hitting the proper button on the left stick. I am not sure what controller you used, but make sure you are pressing the button defined as "1".

Your code is fine and should command the relay (assuming you want kOn instead of kForward), if everything is wired up correctly and your code is placed in the proper location. So start with checking those first.

Also what kind of Robot Framework are you using, Simple, Iterative, or CommandBase? If the code running is not in a loop which is the default for SimpleRobot, then the code will run once and end, never giving you the option to hit the button. You would need to place it in a loop. If you are using Iterative, or Command Base, then the code should be in one of the Autonomous, Teleop, or Test - Periodic methods.


Regards,
Kevin
__________________
Controls Engineer, Team 2168 - The Aluminum Falcons
[2016 Season] - World Championship Controls Award, District Controls Award, 3rd BlueBanner
-World Championship- #45 seed in Quals, World Championship Innovation in Controls Award - Curie
-NE Championship- #26 seed in Quals, winner(195,125,2168)
[2015 Season] - NE Championship Controls Award, 2nd Blue Banner
-NE Championship- #26 seed in Quals, NE Championship Innovation in Controls Award
-MA District Event- #17 seed in Quals, Winner(2168,3718,3146)
[2014 Season] - NE Championship Controls Award & Semi-finalists, District Controls Award, Creativity Award, & Finalists
-NE Championship- #36 seed in Quals, SemiFinalist(228,2168,3525), NE Championship Innovation in Controls Award
-RI District Event- #7 seed in Quals, Finalist(1519,2168,5163), Innovation in Controls Award
-Groton District Event- #9 seed in Quals, QuarterFinalist(2168, 125, 5112), Creativity Award
[2013 Season] - WPI Regional Winner - 1st Blue Banner

Last edited by NotInControl : 21-07-2014 at 18:20.
Reply With Quote