ligerbots / dslogparser

Parse FIRST FRC driver station log files
MIT License
16 stars 10 forks source link

Support Driverstation log version 4. #6

Open caseyjbrotherton opened 2 years ago

caseyjbrotherton commented 2 years ago

dsevents looks the same between version 3 and 4. By taking a small file, opening it in driverstation, and stepping through header, LV timestamp, LV string. It seems to match up.

The python script did not work for the dslog. It read things in…but a few things were off:

If I get closer to the format, I will open a pull request.

If I can get closer to what the format should be, I will open a pull request for the python script.

prensing commented 2 years ago

Hi. I saw your post on CD.

I assume that log version 4 is generated from the 2022 Driver Station. We have not fired that up yet so I don't have an example. It makes sense that the number of PDP slots is now 24, given the new Rev control system. If you have an example file, feel free to post it, but not sure when I can look (build season!!). And I am happy to take a PR.

prensing commented 2 years ago

Oops did not mean to close this.

caseyjbrotherton commented 2 years ago

https://github.com/caseyjbrotherton/dslogparser/tree/quickhack has a quickhack that allows what seems to be correct parsing of the flags.

It doesn't have correct PDP versions. If I can figure out what is missing, or somebody updates the thread, then I will update my fork and make a pull request.