Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   programming a limit switch (http://www.chiefdelphi.com/forums/showthread.php?t=91629)

bradley.gustav 12-02-2011 15:34

programming a limit switch
 
how do you program a limit switch on c++?
:confused:

basicxman 12-02-2011 15:50

Re: programming a limit switch
 
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.


All times are GMT -5. The time now is 13:37.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi