![]() |
Cypress Switch Problem
Hey,
I've got two switches connected up to our team's Cypress board and I wanted one switch if it was false to be able to make the robot drive with joystick, but if it was true I wanted it to photo sense. Code:
while (isOperatorControl()) { |
Re: Cypress Switch Problem
If youre using the Cypress module, you have to use the EnhancedDigitalIO class (or something close to that) instead.
[EDIT] Just checked, and its DriverStationEnhancedIO is the class name. so in initialization you would call (Assumin dio is your DriverStationEnhancedIO variable name) dio = DriverStation.getInstance().getEnhancedIO(); then you can call getDigital on dio to read in digitalIO's |
Re: Cypress Switch Problem
I had a problem with the execution of my robot code when I deployed the code and tried to run the robot it wouldn't run the code in operator control
Code:
dio = DriverStation.getInstance().getEnhancedIO(); |
| All times are GMT -5. The time now is 09:45. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi