Log in

View Full Version : Urgent!! Spike Relay Help!


JackOfAllTrade5
30-04-2014, 00:55
We have a demo tomorrow and my mechanic lead wants to put a tee shirt cannon on one of our robots. He wants to bypass the button on the cannon with a spike relay but I have no idea how to program it and I can't find what I need! I have no idea what I'm doing here.... PLEASE HELP ME! :ahh: :confused: :yikes:

tech2077
30-04-2014, 08:47
Use the Relay (http://www.spectrum3847.org/frc2014api/edu/wpi/first/wpilibj/Relay.html) class, and for the state, use Relay.Value.kForward for on, and Relay.Value.kOff for off.