DataFlash Hardware items

Hi i am making a LogAnalyzer that parsed DataFlash logs (.bin)
I have dificult finding what structure of messages 0- 128 are

where can i find them ?

i have found these

LOG_CTUN_MSG=0,
LOG_NTUN_MSG=1,
LOG_PM_MSG=2,
LOG_STRT_MSG=3,
LOG_SONR_MSG=7,
LOG_ARM_MSG = 8,
LOG_OF_MSG=10,
LOG_QTUN_MSG=11,
LOG_STAT_MSG=22,

DF log formats are self describing, so the log itself describes the format of those messages.
See here for an example parser:

I am making the program in C# not python, but anyway
i am parsing all the FMT messages in an log, and making classes out of them, these classes then parse the message
but when i parse the log i still get some unknown messages that where not in the FMT message
usually it is just one message pr class but there is one message id=9 that has many thousands of messages
it is also a possibility that there is a bug in my code. but it looks as if there are more message typess in the log than in the FMT messages

i have looked at https://github.com/ArduPilot/ardupilot/blob/master/libraries/DataFlash/LogStructure.h
but there are only messages 128 and up. no definition of messages 0-127

I am making the program in C# not python, but anyway

Cool! We’re collecting the whole set of languages :slight_smile: There’s a python
log analyzer in the ArduPilot branch
(ardupilot/Tools/LogAnalyzer at master · ArduPilot/ardupilot · GitHub) and
there’s a C++ log analyzer (GitHub - dronekit/dronekit-la: Log Analyzer for ArduPilot DataFlash logs and MAVLink telemetry logs.)

but when i parse the log i still get some unknown messages that where not in
the FMT message

You must take into account that the log might be corrupt.

i have looked athttps://github.com/ArduPilot/ardupilot/blob/master/libraries/DataFlash/LogS
tructure.h
but there are only messages 128 and up. no definition of messages 0-127

You’ll need to look in the vehicle-specific directories, and in some of
the libraries. e.g.