NiVO / BY TECHNOGISGermany · Indonesia
Flight Data

Read the Embedded Schema Before Exporting Drone DataFlash Logs

Inspect DataFlash FMT, FMTU, UNIT and MULT definitions before comparing exported flight-log fields, units and values across firmware or reader versions.

Read the Embedded Schema Before Exporting Drone DataFlash Logs

Identify the log and the comparison question

A familiar flight-log column can acquire a misleading meaning when its reader, firmware or export settings change. Before comparing records in a NiVO survey review, identify the actual file format and the field definitions that accompany it. This tutorial concerns an already identified ArduPilot DataFlash log and a local export inspection. It does not imply that every NiVO aircraft uses the same controller or logging configuration. The objective is to preserve the relationship between stored data and interpreted values before those values are placed in a spreadsheet, joined to imagery or compared with another mission.

Keep the original log unchanged and identify a working copy by filename, size and byte digest. Record the vehicle software information available in the log, the acquisition context and the question being investigated. A DataFlash record and a ground-received telemetry record are different sources, even if one analysis application can open both. Confirm that the selected reader recognizes the intended format. If the file is incomplete or its origin is uncertain, state that limitation before attempting a field comparison. A successful application launch is not evidence that the selected file contains the observations required by the question.

Follow the embedded definition chain

ArduPilot documents FMT records as descriptions of message formats, including their numeric type, byte length, name, storage-format string and column labels. FMTU associates fields with unit and multiplier identifiers. UNIT and MULT records supply the referenced meanings. Read these as a related definition chain rather than treating the visible column label as a self-contained specification. A field called altitude, for example, still needs its source, reference and representation understood. The current online message catalogue helps explain the mechanism, but the definitions in the actual archived log are central to interpreting that particular recording.

Separate the storage representation from the value displayed by the reader. A format character, a unit label and a multiplier identifier answer related but different questions. Determine which conversions the selected reader performs before its values reach JSON, CSV or a plotting interface. Do not apply a second conversion merely because a multiplier appears in the metadata. Conversely, do not assume every exporter preserves the interpretation information. Select a documented field and inspect its definition and output together. Record the result as behavior of that reader and export path, rather than a universal rule for every DataFlash analysis application.

NiVO VTOL V7 with a white fuselage, lift rotors, and yellow wing tips
NiVO VTOL V7 with a white fuselage, lift rotors, and yellow wing tips.Source: NiVO / TechnoGIS catalogue materials supplied by the site owner · Catalogue photo
Product context only; this photograph does not depict the constructed examples in this article.

Export the definition records deliberately

In an environment where the pymavlink mavlogdump.py tool is available, the following example requests the four definition message types in JSON output. Replace flight.bin with the identified local working copy and use the invocation appropriate to the installed environment. The tool source documents both the output-format option and comma-separated message-type selection. Retain the exact command and tool version with the report. This is an inspection of stored data, not a connection to an aircraft, a firmware update or a recommendation to alter any operating parameter.

Review the output and diagnostic messages together. Check that the definitions needed for the message types under investigation are present, and trace the relevant field positions through FMTU to the unit and multiplier records. An empty filtered report is a finding to investigate, not permission to fill in a schema from another flight. The filter also does not certify that every source byte or observation was decoded. No actual flight log was exported during article preparation; the filename and command are a documented teaching procedure, without an invented field value or successful record count.

mavlogdump.py --format=json --types=FMT,FMTU,UNIT,MULT flight.bin

Verify one analytical field before the full export

Choose a field that matters to the evaluation and document its message name, column position, storage format, unit association and interpreted output type. Check whether the exporter emits a number, a text label or a missing value under the conditions being reviewed. Where a message has an instance identifier, preserve it so records from different devices or instances are not merged accidentally. Keep the definition report with the analytical extract. A concise field contract is more useful than a large table whose column names look familiar but cannot be traced back to their source interpretation.

Handle time fields with the same care. ArduPilot describes TimeUS in the relevant message documentation as time since system startup, which should not be silently treated as a UTC timestamp. Identify the actual time field and any conversion performed by the export tool. A reset, separate recording or another device can require a separate time relationship. Retain the original time representation when constructing a derived timeline. A field-schema audit establishes how values are represented; it does not by itself synchronize an autopilot record with camera events, GNSS observations or an operator's wall-clock notes.

Compare definitions across revisions

When comparing two logs, compare their definition records before combining their values. Message names alone are a weak join rule. Inspect field order, names, types and unit associations, and record the software information belonging to each source. A changed schema is not automatically an error: it may reflect a legitimate revision that needs an explicit mapping. Keep an unmodified export from each recording and apply any normalization as a separate documented step. This makes it possible to review whether a visible difference arose from the observations or from how the comparison table was constructed.

After mapping fields, verify the same sample through the intended downstream application. Check that large integers, decimal values, missing data and instance identifiers retain the meanings required for the task. Avoid smoothing, resampling or aggregating during this first interpretation check, because those operations create additional reasons for values to differ. If a column disappears during export, distinguish an absent source field from an exporter selection or compatibility issue. Do not rename the nearest available field to the expected name simply to make a comparison script run without explaining the substitution.

Deliver an interpretation record with the extract

Package the analytical extract with source identity, embedded definition output, reader version, command and a short explanation of any conversions. Identify fields that were checked and those whose meaning remains unresolved. Preserve the original log outside the derived export workflow. If another analyst repeats the export with a newer reader, retain both results and compare the relevant field contract before replacing the earlier extract. The aim is a reproducible interpretation that can be challenged, not a declaration that a familiar graph or a syntactically valid table has independently verified the flight.

A NiVO mission evaluation can then use the exported values for a bounded question while retaining their context. Schema consistency helps prevent a unit mistake or shifted column from becoming an apparent change in aircraft behavior. It does not establish a fault, explain causation or demonstrate survey accuracy. Those conclusions still require the appropriate flight, payload and quality evidence. Complete the audit by stating which interpretation is supported and what further check would resolve the remaining uncertainty, so the next reviewer can continue from an identified record rather than reconstructing the export assumptions from memory.

Technical references

  1. ArduPilot: log message definitions, FMT/FMTU/UNIT/MULT ↗
  2. ArduPilot: DataFlash message formats, units and multipliers ↗
  3. pymavlink: mavlogdump command options and export behavior ↗
← All articles

Related articles

All articles ↗
LET’S TAKE FLIGHT

Your next mission
starts with a conversation.

Talk to our team