![]() |
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 *Switch1Switch2 = new ? Any help would be appreciated |
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); |
Re: Digital Inputs Driver Station
Quote:
ds = DriverStation::GetInstance(); We spent about an hour one meeting figuring this out :-) |
| All times are GMT -5. The time now is 02:41. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi