Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Using a custom data packet on the SmartDashboard (http://www.chiefdelphi.com/forums/showthread.php?t=101926)

sctjkc01 04-02-2012 10:56

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...


All times are GMT -5. The time now is 00:45.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi