PDA

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


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

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

beefy1
12-24-2008, 02:59 PM
DIGITAL

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


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