View Single Post
  #3   Spotlight this post!  
Unread 25-02-2012, 13:16
hsekhon27 hsekhon27 is offline
Registered User
FRC #0280 (TNT)
Team Role: Programmer
 
Join Date: Dec 2011
Rookie Year: 2011
Location: Taylor, MI
Posts: 23
hsekhon27 is an unknown quantity at this point
Exclamation Re: LEDs on Driverstation

Quote:
Originally Posted by Alan Anderson View Post
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.
Okay, but for a boolean, don't I have to make an array of elements first? I have three limit switches, and made an array of their values, then I flattened the array using flatten to string function and then sent is as a high priority to dashboard. Now, in dashbard project, do I have to use the index array function after the unflatten from string function? and for data type, can I just put a true or a false constant? Thanks