Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Limit switches(in C++) (http://www.chiefdelphi.com/forums/showthread.php?t=70819)

beefy1 24-12-2008 05:45

Limit switches(in C++)
 
how to get the value of the limit switch(pressed or not) through c++ wpilib? thanks.:]

tdlrali 24-12-2008 09:16

Re: Limit switches(in C++)
 
What is this limit switch connected to? A digital input or a jaguar?

beefy1 24-12-2008 14:59

Re: Limit switches(in C++)
 
DIGITAL

tdlrali 24-12-2008 15:27

Re: Limit switches(in C++)
 
Check out DigitalInput.h

Code:

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



All times are GMT -5. The time now is 08:59.

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