Log in

View Full Version : DS packets


dpeterson3
07-02-2009, 19:30
Does anyone know where I can find the information on the packets the DS sends to the CRIO and vise versa? I need that to code the camera for competition feedback (using C++, but I don't think it matters). I also want to write a Java DS so we don't have to use the physical one always. We have run into some times where a virtual one would be useful. I can code it if I can find the packet statistics.

writchie
07-02-2009, 19:45
You can look at this thread for info on the format of DS to Dashboard Packets.

http://www.chiefdelphi.com/forums/showpost.php?p=804446&postcount=3

You can only receive the user data in these packets and they are forwarded from DS to the Dashboard.

The DS/cRIO streams are off-limits. You can only interact by stuffing your user data at the cRIO which then will become part of the DS to Dashboard packets.

If you want to stream your own camera data you will have to do it within the 984 bytes of user data which is sent every 50 hz.

dpeterson3
07-02-2009, 20:21
I know. The Virtual DS is for demonstrations and debugging only. No competiton involved.

dpeterson3
12-02-2009, 23:12
I have been looking through the C++ data structure coming in in the FRCComm file so i can get an idea of how to send the data. Most of it is easy except when I get to the checksums. I have never worked with them before. I understand how the basic alogrthim works, but I am not sure what they use here. Assuming it is the same for downloading, where in the Hex code do I look. I am guessing the last four bytes sent, but I am not sure. Is this correct? Also, if any one knowns what alograthim they used for checksums, please let me know.