View Single Post
  #3   Spotlight this post!  
Unread 09-04-2012, 13:26
coreyjon's Avatar
coreyjon coreyjon is offline
Flight Engineer
FRC #0250 (Team 250 Dynamos)
Team Role: Mentor
 
Join Date: Feb 2003
Rookie Year: 2001
Location: Upstate, Ny
Posts: 184
coreyjon is just really nicecoreyjon is just really nicecoreyjon is just really nicecoreyjon is just really nicecoreyjon is just really nice
Send a message via AIM to coreyjon
Re: Spike relay mapped to gamepad trouble.

Quote:
public void teleopPeriodic() {

if (gp.getRawButton(1))
{
light.set(Relay.Value.kforward);
}
else if (gp.getRawButton(2))
{
light.set(Relay.Value.kReverse);
}
else
{
light.set(Relay.Value.kOff);
}
A button (1) turns on green light on sidecar, and spike (nice click!)
B button (2) turns on red light on sidecar, and spike just sits there (not nice)
no button, spike is orange - no lights on sidecar.

the logic seamed sound, and the sidecar behaves how I expected, but the pesky spike - the reason I'm still drinking coffee in the afternoon.
__________________
"Jack of all trades, master of none, though offtimes better than master of one".
Reply With Quote