View Single Post
  #9   Spotlight this post!  
Unread 05-03-2009, 16:17
gwytheyrn gwytheyrn is offline
Registered User
AKA: David
FRC #0461 (West Side Boiler Invasion)
Team Role: Programmer
 
Join Date: Dec 2007
Rookie Year: 2004
Location: Indiana
Posts: 44
gwytheyrn is infamous around these parts
Send a message via AIM to gwytheyrn
Re: Feedback for Dashboard during Competition

Not quite...put the number into the cluster, flatten the cluster into a string, and convert the string to a byte array. I still have to work out a couple quirks in my own dashboard xD. Earlier, I actually tried taking the 32 bit Uint and breaking it into a binary array and converting 8 bits to a ubyte int and putting them into an array. (Doesn't work very well...or really at all. Probably did something wrong).
So packing goes
value -> cluster ->binary string ->byte array
unpacking is
byte array ->binary string->cluster->value

Attached vi. should work
Attached Files
File Type: vi packingexamp.vi (11.5 KB, 22 views)

Last edited by gwytheyrn : 05-03-2009 at 16:19.