View Single Post
  #4   Spotlight this post!  
Unread 30-01-2009, 13:51
s0crates s0crates is offline
Registered User
no team
Team Role: Programmer
 
Join Date: Dec 2008
Rookie Year: 2009
Location: Australia
Posts: 52
s0crates is on a distinguished road
Re: Sending user data, parsing user data.

The crio sends data as a sequence of bytes - you have to manually unpack the data. You need to convert the u8 bytes into a string, and from there into whatever the original data type was.

on the crio:
Code:
dashboardDataFormat.PackAndSend();
As far as I can tell (my team's using labview only) that is correct - particularly if thats an example.

On the ds side, you have to unpack it - before that, its just a stream of bytes.
Using the FRC Dashboard is a good tutorial on how to handle data sent back.


-jonathan
try to specify what you're using next time plz...
Reply With Quote