|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
LEDs on Driverstation
I have read the tutorial for having a gyro display angle on driverstation. I'm guessing it's the same thing for a boolean? But I want to display multiple LEDs on the driverstation. I know I can bundle them and send it as a high priority data to the ds, but my question is, when I unbundle them in the dashboard project, how do I know which one is which boolean?
|
|
#2
|
|||||
|
|||||
|
Re: LEDs on Driverstation
When you bundle the data up in the robot code, you can do a "bundle by name" and supply a typedef to define what data goes in which order before you flatten it to a string. Use the exact same typedef as the pattern for the unflatten from string that you use in the Dashboard code.
|
|
#3
|
|||
|
|||
|
Quote:
|
|
#4
|
|||||
|
|||||
|
Re: LEDs on Driverstation
If you flatten an array of three booleans, then you have to give an example array of three booleans as a pattern to the unflatten function in order to get the original array of three booleans as the final output.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|