View Single Post
  #1   Spotlight this post!  
Unread 07-02-2012, 21:29
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
Efficent way to send data?

Hello -

I've hit a logistical wall here. I'm looking to read a rangefinder and bundle a defined list of numerical constants based on the range. So, for example, if the rangefinder reports 20 inches, send bundled data X, consisting of numerical constants of 1, 2, and 35. If the rangefinder reports 100 inches, send bundled data Y, consisting of numerical constants 50, 200, and 650. Then, later within my code, I want to unbundle this list and wire the outputs to their intended destinations.

The trick is I want to be able to have 50+ ranges to check if the readout from the rangefinder is within, and 50+ different bundles with different constants wired to one unbundle later in the code.

Any help is appreciated. Thanks!
Reply With Quote