Log in

View Full Version : Limit switches(in C++)


beefy1
24-12-2008, 05:45
how to get the value of the limit switch(pressed or not) through c++ wpilib? thanks.:]

tdlrali
24-12-2008, 09:16
What is this limit switch connected to? A digital input or a jaguar?

beefy1
24-12-2008, 14:59
DIGITAL

tdlrali
24-12-2008, 15:27
Check out DigitalInput.h


DigitalInput *limitswitch = new DigitalInput(x); <- x is the DI location
limitswitch->Get();