NiVO / BY TECHNOGISGermany · Indonesia
Telemetry label tutorial

MAVLink VFR_HUD: Keep Airspeed, Groundspeed, and MSL Altitude Distinct in Drone Logs

Label six already decoded VFR_HUD fields, convert speed display units, and retain altitude and rate meaning without inventing wind or ground-clearance results.

MAVLink VFR_HUD: Keep Airspeed, Groundspeed, and MSL Altitude Distinct in Drone Logs

Start a log comparison with the field name and unit

A drone-log export can place airspeed, groundspeed, altitude, heading, and climb beside one another in a compact row. That layout makes it easy to carry a number into a chart while losing its meaning. A speed shown in kilometres per hour should not be compared directly with another display in metres per second. An altitude number also needs its reference, not just a metre label. Before describing two reports as inconsistent, identify the original message, exact field, unit, and any display conversion applied.

This tutorial labels a constructed set of already decoded MAVLink VFR_HUD fields. It does not read a flight log, decode packets, contact an aircraft, change a controller, or establish which telemetry a NiVO product implements. The catalogue photograph provides product context rather than evidence for the numbers. The example preserves the received meanings while producing a clearly labeled offline summary. Its result is suitable for explaining a representation difference, with no inference about a real flight condition, safe operating limit, or completed survey.

Read the six field definitions before creating chart labels

The MAVLink common message definition lists airspeed and groundspeed in metres per second, heading in compass degrees, throttle in percent, altitude in metres above mean sea level, and climb rate in metres per second. It describes standard-aircraft airspeed as typically calibrated or indicated airspeed, rather than guaranteeing true airspeed. Heading spans zero through three hundred sixty and throttle zero through one hundred in the documented descriptions. Keep these field-specific definitions with the export instead of replacing them with a generic value column.

For the invented input below, airspeed is twelve point five metres per second and groundspeed is ten metres per second. Their optional display conversions are forty-five and thirty-six kilometres per hour. Multiplying by three point six changes the unit scale; it does not make the two quantities interchangeable. The altitude remains one hundred twenty-three point five metres MSL, the heading remains two hundred seventy degrees, the throttle remains forty-two percent, and the signed climb value remains minus one point two five metres per second.

Restored NiVO VTOL V3 product image from the supplied brochure
Restored NiVO VTOL V3 product image from the supplied brochure.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.

Build a labeled offline snapshot without estimating new flight quantities

Run the following Python function locally with the six supplied values. It returns separate keys containing the field meaning and unit, including both original speed values and their display conversions. It accepts finite numeric values within a deliberately broad magnitude bound for the teaching float fields, and requires integer heading and throttle values in the documented description ranges. Negative speed inputs are rejected by this example profile. These checks are local input contracts, not a complete protocol validator, sensor-health assessment, or aircraft operating envelope.

The expected speed outputs are forty-five and thirty-six, while altitude_msl_m stays one hundred twenty-three point five and climb_m_s keeps its negative sign. No terrain elevation, home reference, heading correction, or airspeed calibration is supplied to the function. It therefore returns no above-ground altitude, relative-home altitude, true-airspeed estimate, wind value, or clearance result. Preserve that narrow scope when copying the output into a report so a convenient label conversion does not become an unsupported analysis of a real vehicle.

import math

def label_vfr(airspeed, groundspeed, heading, throttle, alt, climb):
    floats = (airspeed, groundspeed, alt, climb)
    if any(type(x) not in (int, float) or not math.isfinite(x)
           or abs(x) > 1_000_000 for x in floats):
        raise ValueError("Teaching profile: finite numeric values within +/-1e6")
    if airspeed < 0 or groundspeed < 0:
        raise ValueError("Teaching profile: non-negative speed magnitudes")
    if type(heading) is not int or not 0 <= heading <= 360:
        raise ValueError("Expected integer compass heading 0..360 degrees")
    if type(throttle) is not int or not 0 <= throttle <= 100:
        raise ValueError("Expected integer throttle 0..100 percent")
    return {"airspeed_m_s": airspeed, "groundspeed_m_s": groundspeed,
            "airspeed_km_h": airspeed * 3.6, "groundspeed_km_h": groundspeed * 3.6,
            "heading_deg": heading, "throttle_percent": throttle,
            "altitude_msl_m": alt, "climb_m_s": climb}

# Constructed decoded fields, not actual aircraft telemetry.
print(label_vfr(12.5, 10.0, 270, 42, 123.5, -1.25))

Keep altitude reference and signed rate separate

Do not relabel the MSL altitude as height above the local ground merely because a map view shows terrain beneath the aircraft symbol. The example contains no terrain surface, position, terrain sample, or aligned reference conversion. Likewise, subtracting an arbitrary home value would introduce a new calculation with additional assumptions. If a real review needs ground clearance or another altitude reference, retain the original field and document the separate data and method used for that question. This label snapshot does not answer it.

Preserve negative climb values rather than converting every rate to an unsigned magnitude or discarding the sign during formatting. Test zero and positive values separately so the report distinguishes a signed rate from altitude itself. A single constructed rate is not an altitude history, and the function supplies no sample interval or integration method. Do not use it to reconstruct a flight path or to assert a duration of climbing or descending. Those questions require a correctly timed sequence and independent checks on the source data.

Avoid turning scalar speed differences into wind evidence

The difference between the two displayed speed magnitudes is not a complete wind estimate. This snapshot has no ground-track vector, air-velocity vector, or verified conversion from the reported airspeed kind to true airspeed. The heading field should retain its own compass label rather than being silently substituted for every missing direction. If investigating wind in a real dataset, identify the required quantities and their references separately. A successful speed-unit conversion establishes only that the arithmetic and labeling agree for the supplied values.

Test the snapshot with equal speeds, zero speeds, different valid heading endpoints, and throttle endpoints. Keep the heading value three hundred sixty as supplied rather than silently rewriting it to zero, so the original decoded representation remains visible. Reject missing values, text numbers, Booleans, and non-finite values under the teaching input policy. A rejection is a request to investigate that input or adopt an explicitly documented handling policy; it is not proof of a sensor fault, packet corruption, or an unavailable-value convention for this message.

Deliver a reproducible field dictionary with the source record

For an actual log handoff, retain the file identity, dialect and message definition, sender identity, record location, capture or log timing context, decoder version, raw decoded fields, and display-unit choices. Keep the original values available next to converted columns. If a dashboard also applies smoothing, interpolation, calibration, or an altitude-reference transformation, record those as separate steps with their own inputs. Comparing a raw field against a processed chart without those details can create an apparent discrepancy that a unit conversion alone cannot resolve.

This snapshot also carries no timestamp argument and performs no alignment between records. Do not treat values copied from different log rows as one synchronized observation merely because the resulting dictionary looks coherent. Preserve each record location and the timing method used by the actual review. If a comparison selects nearest samples or interpolates between messages, document that operation separately, including how gaps are handled. These choices are outside the arithmetic performed by the example.

In a NiVO-related telemetry review, this approach explains why twelve point five metres per second appears as forty-five kilometres per hour while MSL altitude and signed climb retain separate meanings. It makes no claim about flight permission, vehicle health, sensor accuracy, survey quality, wind, or ground clearance. Preserve the unchanged source record and continue the checks appropriate to the actual review. The useful outcome is an auditable field dictionary and display conversion that another reviewer can reproduce without inheriting hidden assumptions about the aircraft or its operating environment.

Technical references

  1. MAVLink common messages: VFR_HUD field meanings, types, and units ↗
  2. MAVLink primary common.xml: original message definitions ↗
← All articles

Related articles

All articles ↗
LET’S TAKE FLIGHT

Your next mission
starts with a conversation.

Talk to our team