Skip to main content

Module dataflash

Module dataflash 

Source
Expand description

ArduPilot DataFlash logs (.bin).

A DataFlash log describes its own messages: each FMT record gives a message type’s id, length, name, format characters and field labels; every other record is A3 95, its type’s id, and its fields packed end to end. One pass records where each type’s records start (crate::formats::indexed) and reads the units and multipliers of FMTU, UNIT and MULT when the log has them; each type is then a table decoded from a map of the file, its columns typed by their format characters.

Every length is bounded: a record by its type’s length and the file’s end. A byte that does not start a record is passed over to the next A3 95 and counted.

Structs§

Index
What one pass over a DataFlash log found.
MessageType
One message type, as its FMT record defines it.

Functions§

columns
The columns of a message type, and each one’s unit.
index
Index the DataFlash log in data: one pass, start to end.
looks_like
Whether head, the first bytes of a file, begins a DataFlash log: an FMT record that defines FMT itself.