|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Digital Inputs Driver Station
So what I have right now is 2 light switched connected to the driver station.
I am having a hard time declaring them. I am not sure on the proper syntax. Code:
DigitalInput *Switch1 DigitalInput *Switch2 Switch2 = new ? Any help would be appreciated |
|
#2
|
||||
|
||||
|
Re: Digital Inputs Driver Station
You shouldn't have to declare new Digital Inputs. Use the existing methods in the Driver Station class:
DriverStation *ds; ds = new DriverStation(); ds->GetDigitalIn(channel); Last edited by Kristian Calhoun : 02-24-2009 at 08:22 PM. |
|
#3
|
||||
|
||||
|
Re: Digital Inputs Driver Station
Quote:
ds = DriverStation::GetInstance(); We spent about an hour one meeting figuring this out :-) |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How sensitive are the driver station digital inputs? | FRC4ME | FRC Control System | 4 | 02-17-2009 08:26 PM |
| Inputs on Driver Station | z2daj | C/C++ | 8 | 02-16-2009 04:12 AM |
| using digital inputs from the driver station | SL8 | NI LabVIEW | 2 | 02-04-2009 03:53 PM |
| Programming Digital Inputs from Driver Station | spooncwru | Programming | 8 | 02-01-2009 01:14 PM |
| Using driver station digital inputs | Japper | FRC Control System | 6 | 01-19-2009 08:01 PM |