View Single Post
  #2   Spotlight this post!  
Unread 31-01-2012, 08:08
DominickC DominickC is offline
Registered User
FRC #0023 (PNTA)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 1620
Location: Boston
Posts: 435
DominickC is an unknown quantity at this point
Re: Send two pieces of data to dashboard

I had the same issue about two weeks back. Here's what you need to do.

1. Flatten to String the Rangefinder output.
2. Flatten to String the Gyro output.
3. Bundle them using the Bundle function located somewhere under the Programming palette.
4. Flatten to String the output of the bundle.
5. In your Dashboard, place an Unflatten from String down near the High User Data output. In the "type" node, wire something which tells the Unflatten from String what it's going to be taking in. This'll take some experimenting, as it did for me.
6. Wire the User Data High to the Unflatten from String, and wire the output to an Unbundle.
7. Wire each of your Unbundled data sources to an Unflatten from String, with a type constant of 0.
8. Wire the outputs from these Unflatten from String's to whatever you want.

Good luck!
Reply With Quote