|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Limit switches(in C++)
how to get the value of the limit switch(pressed or not) through c++ wpilib? thanks.
![]() |
|
#2
|
|||
|
|||
|
Re: Limit switches(in C++)
What is this limit switch connected to? A digital input or a jaguar?
|
|
#3
|
|||
|
|||
|
Re: Limit switches(in C++)
DIGITAL
|
|
#4
|
|||
|
|||
|
Re: Limit switches(in C++)
Check out DigitalInput.h
Code:
DigitalInput *limitswitch = new DigitalInput(x); <- x is the DI location limitswitch->Get(); |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Limit Switches | ChrisR_522 | Programming | 2 | 25-01-2008 08:04 |
| Alternative to limit switches? | RbtGal1351 | Electrical | 27 | 10-12-2005 15:30 |
| limit switches | stephenthe1 | Programming | 28 | 11-05-2005 16:37 |
| Limit Switches help. | Xufer | Programming | 9 | 21-04-2004 21:21 |
| Limit switches | Team168 | Programming | 8 | 10-02-2003 16:22 |