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.