NiVO / BY TECHNOGISGermany · Indonesia
GNSS telemetry interpretation

GPS_RAW_INT: Check Units and Course Before Plotting Drone Telemetry

Interpret selected GPS_RAW_INT fields without confusing scaled HDOP, ground speed, course over ground or unavailable markers with heading and survey accuracy.

GPS_RAW_INT: Check Units and Course Before Plotting Drone Telemetry

Identify the message and the exported representation

A column called GPS speed or heading can hide several interpretation choices made before a drone log reaches an analyst. Begin a NiVO telemetry review with the exact message, dialect revision, sender and export convention. This tutorial concerns selected GPS_RAW_INT fields in the MAVLink common definition actually read. It does not claim that an actual NiVO configuration emits the message or that a real flight packet was decoded for this article. Preserve the raw recording and decoder details so the relationship between original fields and plotted values remains traceable.

Determine whether the receiving table contains encoded integers, values already converted to engineering units or a display-oriented summary. Applying a scale twice can create a misleading graph even when every row parses successfully. Keep the original field name and units alongside any interpreted column. Establish the session and sender grouping before merging files. Similar column labels do not establish that two exports contain the same message or sensor source. The purpose is to make a specific interpretation reproducible, rather than producing a familiar-looking plot whose numerical basis and unavailable-value rules have been lost.

Distinguish sensor position fields from a system estimate

The MAVLink definition distinguishes GPS_RAW_INT sensor-reported position information from the system global-position estimate and points to GLOBAL_POSITION_INT for that estimate. The word raw should therefore not be taken to mean that the message contains the carrier observations required by a RINEX PPK workflow. Identify the actual information available before choosing an analysis. A decoded message can support a question about a reported GNSS field while leaving another positioning question unresolved. Keep that boundary visible instead of using a message name as a universal description of the whole navigation solution.

The reviewed definition describes eph as scaled, unitless horizontal dilution of position and vel as ground speed in centimetres per second. It defines cog as course over ground in centidegrees, explicitly distinguishing direction of movement from heading. Preserve those meanings when labelling a table. HDOP is not a distance-error measurement, ground speed is not automatically airspeed and a track direction does not establish body orientation. Additional evidence is needed for those other questions. Avoid relabelling a convenient available field to match a requested quantity that the recording may not actually contain.

NiVO VTOL V5 product image showing the fixed wing and vertical-lift rotors
NiVO VTOL V5 product image showing the fixed wing and vertical-lift rotors.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.

Apply unavailable markers before the numerical conversion

The common definition assigns the unsigned sixteen-bit maximum value as an unavailable marker for each of the three selected fields. Test that marker before dividing by one hundred. Otherwise an absent observation can become a large apparently measured quantity. The function below is limited to an already decoded dictionary with those three integer fields. It checks the selected encoded range and the declared course range, then returns separately labelled values or None. It does not parse packets, assess fix status, validate a complete message or contact any aircraft or GNSS receiver.

For a constructed arithmetic example, an encoded speed of twelve hundred thirty-four corresponds to twelve point three four meters per second under this field convention. A course value of nine thousand corresponds to ninety degrees, while an unavailable marker remains absent rather than becoming an angle. These numbers are teaching inputs, not NiVO observations or independently executed output. Confirm that the actual exporter has not already performed the conversion before adapting the recipe. Retain the source integers and marker states with the interpreted values so a later reviewer can reproduce the operation and locate a mistaken scale or label.

# Partial interpretation of already decoded GPS_RAW_INT fields.
def selected_gps_fields(fields):
    def scaled(value):
        if type(value) is not int or not 0 <= value <= 65535:
            raise ValueError("Expected an encoded unsigned 16-bit integer")
        return None if value == 65535 else value / 100.0

    hdop = scaled(fields["eph"])
    speed = scaled(fields["vel"])
    course = scaled(fields["cog"])
    if course is not None and course >= 360:
        raise ValueError("Course outside the declared range")
    return {"hdop_unitless": hdop, "ground_speed_m_s": speed,
            "course_over_ground_deg": course}

Keep course, yaw and other angular evidence separate

A map arrow can represent motion direction, aircraft orientation, a planned line or another application choice. Identify which quantity a specific display uses before interpreting a disagreement. The common message also has an extension yaw field with its own reporting and unavailable conventions; the small recipe deliberately does not decode it. Do not apply the cog rule to every angle-looking field or overwrite one angular quantity with another because their labels seem similar. Preserve the original definitions and select evidence appropriate to the orientation or movement question being asked.

When comparing an actual track with another record, align the relevant event times, references and sensor identities first. A visual difference between course and a heading-like value does not by itself establish a fault or a wind measurement. Likewise, a zero ground-speed value should not trigger an automatic assignment of north to an unavailable course. Keep unavailable samples and unresolved comparisons visible. Any derived analysis needs its own assumptions and suitable evidence, rather than treating the successful conversion of a protocol field as proof of the physical relationship that an analyst hopes to infer.

Preserve time, status and missing-data context in the plot

The GPS_RAW_INT timestamp definition allows different time origins, so identify the recorded convention before joining a camera, operator or external GNSS timeline. A large integer or a formatted clock display is not a complete association record. Retain the actual session evidence and explain any conversion performed by the exporter. Keep the relevant status and quality context available, even though the bounded function does not interpret it. A finite converted value is a statement about field representation; it does not independently establish that the sample is suitable for a survey or that the source clocks were synchronized.

Represent missing samples and unavailable fields as such when preparing a chart. Filling them with zeros or an interpolated line can imply observations that the archive does not support. If a derived display serves a defined purpose, label it and retain an original-sample view. Compare equivalent fields and intervals rather than drawing conclusions from differently processed summaries. This tutorial supplies no acceptance threshold, flight-performance result or positioning guarantee. Any technical decision should use the applicable evidence and documented assessment process, with the limitations of the available telemetry stated alongside the interpretation.

Deliver the field interpretation with the original evidence

A useful review record names the archive, message definition, decoder, exporter, grouping rule and each conversion used. Preserve source values, unavailable markers, units and the exact meaning of every plotted quantity. Include actual sample counts or discrepancies only when inspected. Another analyst should be able to choose one point in the chart and trace it back to an identified original field. If the export has discarded the message identity or marker information, state that limitation and seek the missing evidence instead of treating a polished display as a complete representation of the recorded GNSS information.

For NiVO discussions, the practical question becomes precise: does this curve show sensor-reported ground speed, course over ground, a status-related quantity or an interpreted system estimate? That distinction can resolve a scale or labelling issue without inventing a navigation-performance finding. It also preserves the difference between protocol decoding and survey assessment. Keep the accepted original and the review scope with the delivery. The result is a reproducible foundation for a later technical analysis, while claims about accuracy, orientation, timing and operation remain tied to the separate evidence required to support them.

Technical references

  1. MAVLink common definition — GPS_RAW_INT meanings, units and markers ↗
  2. MAVLink generated C implementation — GPS_RAW_INT field declarations ↗
← All articles

Related articles

All articles ↗
LET’S TAKE FLIGHT

Your next mission
starts with a conversation.

Talk to our team