View Single Post
  #16   Spotlight this post!  
Unread 24-06-2014, 10:59
adciv adciv is offline
One Eyed Man
FRC #0836 (RoboBees)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2010
Location: Southern Maryland
Posts: 478
adciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to all
Re: Pneumatics system code

Ok, to do some quick troubleshooting:

First, for my sanity, please add brackets
Code:
// Solenoid
if (mainStick.getRawButton(1))
{
   spike.set(Relay.Value.kForward);
}
else {
  if (mainStick.getRawButton(2))
 {
   spike.set(Relay.Value.kReverse);
 }
}
If problem persists, comment out the code and use only
Code:
spike.set(Relay.Value.kForward);
If the spike LED is not solid Green, you have a wiring issue. Either your wire is bad or the spike is on the wrong port. If that does work, it becomes a code issue.
__________________
Quote:
Originally Posted by texarkana View Post
I would not want the task of devising a system that 50,000 very smart people try to outwit.