|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: Buttons on Dashboard (please help)
If you do not have the cypress board working, you can always use the DIP switches that are under the IO tab on the driver station. Failing that, the throttle controls on each of the Attack 3 Joysticks make good autonomous selectors.
|
|
#2
|
||||
|
||||
|
Re: Buttons on Dashboard (please help)
So what I tell teams who've asked me this question is that if you use the DIO buttons on the Drivers station, they can be read in your code using "WPI_Driver StationGet Digital Input.vi."
If you take the array out of, cast it to a number using a "Boolean Array to Numeric" method, and you then run that number into a case structure. After that, its Binary math on the 8 bit number you'd end up with (010). If you use just two switches, 00 could be Option 1, 01 could be option 2, 10 could be option 3, and 11 could be option 4 .... |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|