View Full Version : Limit switches(in C++)
how to get the value of the limit switch(pressed or not) through c++ wpilib? thanks.:]
What is this limit switch connected to? A digital input or a jaguar?
Check out DigitalInput.h
DigitalInput *limitswitch = new DigitalInput(x); <- x is the DI location
limitswitch->Get();
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.