|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
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 : 24-02-2009 at 20:22. |
|
#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 | 17-02-2009 20:26 |
| Inputs on Driver Station | z2daj | C/C++ | 8 | 16-02-2009 04:12 |
| using digital inputs from the driver station | SL8 | NI LabVIEW | 2 | 04-02-2009 15:53 |
| Programming Digital Inputs from Driver Station | spooncwru | Programming | 8 | 01-02-2009 13:14 |
| Using driver station digital inputs | Japper | FRC Control System | 6 | 19-01-2009 20:01 |