View Single Post
  #1   Spotlight this post!  
Unread 04-02-2012, 10:56
sctjkc01 sctjkc01 is offline
Registered User
FRC #3181 (Pittsford Panthers)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2009
Location: New York
Posts: 4
sctjkc01 is an unknown quantity at this point
Using a custom data packet on the SmartDashboard

So, I'm trying to create a widget that is basically an all-in-one for all our data, except I can't figure out how to get the widget to read the information we're trying to send it.

As far as I've planned, I've created a class on the cRIO called FRC3181DataPacket, which implements edu.wpi.first.wpilibj.smartdashboard.SmartDashboar dData.

getType() returns "3181 Custom Packet" (Creative name, I know...) and getTable() returns NetworkTable.getTable("3181DataTunnel");.

I know we gotta set TYPES to { DataType.getType("3181 Custom Packet") } but I'm having loads of !!FUN!! trying to figure out what to do from there.

I guess it would also help to figure out exactly how to attach information to the packet...