|
|
|
![]() |
|
||||||||||||||
|
|||||||||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Alternate viewer for Driver Station Logs (dslog)?
Hello - we are analyzing our ds logs due to lag issues seen at our first competition. I am wondering if the log structure/content is documented any where or if a portable simplified (windows or Linux) viewer has been identified. Ideally I'd like to view it in a way that I can create my own plots, crunch filter, etc without needed all the NI software installed. If methods exist already that would help!
Thanks |
|
#2
|
|||
|
|||
|
Re: Alternate viewer for Driver Station Logs (dslog)?
The DS log file is binary (for compactness and has a simple header of a 32 bit version number that is always zero at this point and a (64,64) bit timestamp with an epoch of 12:00:00.000 AM 1/1/1904 (Universal Time). It is a 64 bit int of seconds since ... and then 64 bits of fractional seconds.
The rest of the file is a sequence of tuples (single, single, single, u8, i8) and I believe they are packed with no alignment. The attached code build the plots and the legend shows the plots being built. The only complicated element that the last six plots packed into the u8. Each bit selects between Nan (which lifts the graph pen), and a value plotted on the scale. It is basically a bitfield of those six bits representing what the DS told the robot to run and what the robot ran during that time slice. I think the last element to add is that the byte ordering is big endian. Let me know if I left anything out or something doesn't seem right. Greg McKaskle |
|
#3
|
|||
|
|||
|
Re: Alternate viewer for Driver Station Logs (dslog)?
Wow, thanks for the reply Greg! I am not familiar with Labview so the image is a little 'greek' to me, but I am sure I can decipher it. If I have some free time (most likely post competition season at this point) I may write a little decoder app to expand the data and make it more portable for things like xplot and excel. Not sure if it will be useful, but I like a good challenge.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|