Quote:
Originally Posted by kingpinzs
Code:
Relay hopper;
hopper(1);
if(joybutton(1));
{
hopper.Set(Relay::kOn);
hopper.Set(Relay::kForward);
}
|
Check out Relay.cpp in WPILib. Relay have a direction, kOn sets both forward and reverse. kForward sets only forward. If it was wired correctly, I'm guessing you want to remove the kOn call.
KC