View Full Version : programming a limit switch
bradley.gustav
12-02-2011, 15:34
how do you program a limit switch on c++?
:confused:
basicxman
12-02-2011, 15:50
Should probably search Chief Delphi for answers.
However, you would use a DigitalInput object (http://mmrambotics.ca/wpilib/class_digital_input.html) and use the Get() function to check whether the switch is high or low.
The correspondence of TRUE to HIGH or FALSE to HIGH is dependent on your wiring.
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.