|
Re: Alternate viewer for Driver Station Logs (dslog)?
The data you are looking for is in the binary .dslog file. It starts with an I32 version. The current version is 3. Next is a LV timestamp which is sixteen bytes and described on our website if you wanna decode it. The rest of the files is a stream of entries every 20ms -- described below.
The numbers are often packed, and described as I.D(int.dec). For example, 7.1 is 7 bits above decimal and 1 below.
Trip time is a 7.1 int of milliseconds for round trip.
Lost packets is a byte of packets per half second, ranging from 0 to 25. So multiplying by four gives percent loss for the period.
Voltage is 8.8 volts.
CPU is 7.1 as a percentage.
Flags is a byte, with bits for
Robot Disable, Auto, Tele (what the robot reported running)
DS Disable, Auto, Tele (what the DS asked it to do)
Watchdog
Brownout
CAN utilization is 7.1 as a percentage.
Signal Strength is 7.1 as dB (not reported yet)
Bandwidth is 8.8 in megaBits (not logged yet)
PDP data is 24 bytes defined by the PDP.
First byte is an ID of which PDP is being reported.
Then 16 10 bit numbers (7.3) at bit offsets (8, 18, 28, 38, 52, 62, 72, 82, 92, 102, 116, 126, 136, 146, 156, and 166).
Remaining three bytes are resistance, voltage, and temperature with special values for scaling.
Hope that helps.
Greg McKaskle
|