NiVO / BY TECHNOGISGermany · Indonesia
VTOL telemetry tutorial

MAVLink EXTENDED_SYS_STATE: Keep VTOL Configuration State Separate from Landed State

Label the two EXTENDED_SYS_STATE enum fields independently in an offline tutorial, preserving undefined and unrecognized values without inventing a flight timeline.

MAVLink EXTENDED_SYS_STATE: Keep VTOL Configuration State Separate from Landed State

Read two state fields as two observations

An offline drone log can contain several fields that all look like small state numbers. Their meanings depend on the field and its enum, not on the number alone. MAVLink EXTENDED_SYS_STATE is a useful example because it carries both VTOL state and landed state. Combining those labels into one generic flight status can erase information. This tutorial builds a small offline label report from invented decoded values. It does not contact an aircraft, request a transition or assert that any NiVO model sends these fields or follows a particular flight sequence.

Keep the message name, source identity, log revision and decoder context with a real observation. The helper below starts after decoding and accepts only the two field values. It does not establish their age, whether a packet is valid or whether the source is the intended flight controller. Those are separate questions for the surrounding review. A clear report can preserve the supplied values and documented labels without pretending that two integers establish a complete aircraft condition, a completed mission, a permitted maneuver or a readiness decision.

Use each enum definition at its own field path

The common message definition describes vtol_state using MAV_VTOL_STATE and landed_state using MAV_LANDED_STATE. Both fields are unsigned eight-bit values. The VTOL enum distinguishes transitions toward fixed-wing and multicopter configurations from the multicopter and fixed-wing states. Its zero value means that the vehicle is not configured as VTOL. The landed enum instead distinguishes on-ground, in-air, takeoff and landing detector states. Its zero value means unknown landed state. The shared undefined wording in their enum names should not conceal these different field-specific meanings.

Value three makes the distinction particularly visible. In the VTOL field it denotes multicopter state; in the landed field it denotes taking off. A dictionary keyed only by the numeric value would have no way to choose correctly between those meanings. Use separate dictionaries keyed by each field, and retain both raw numbers. The report should label an unrecognized value as unrecognized rather than substituting zero. A future or unfamiliar value needs its raw identity for investigation; it is not automatically the documented undefined condition.

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.

Run an offline label report on constructed decoded fields

The Python function below checks only the integer representation and unsigned eight-bit range, then performs two independent lookups. It deliberately rejects booleans, text and missing values instead of coercing them into a state number. The output includes the raw fields, descriptive labels and a known-value flag for each dictionary. A known flag means that this particular lookup recognizes the enum value. It does not mean the packet, source, timestamp or aircraft has been validated. Keeping that definition narrow avoids turning a convenient report field into an unsupported operational assurance.

Run the supplied tuples without connecting a radio or opening a network endpoint. The first tuple uses three in both fields to expose the different enum meanings. The second uses zeros to expose the different undefined descriptions. The third preserves an unrecognized VTOL number beside a recognized landed number. These are separate constructed records, not a time sequence or a claim that the combinations describe an observed aircraft. The function performs no consistency assessment between the two labels and cannot determine whether a particular system would emit a given pair.

def label_extended_state(vtol_state, landed_state):
    if any(type(value) is not int or not 0 <= value <= 255
           for value in (vtol_state, landed_state)):
        raise ValueError("expected decoded uint8 fields")
    vtol = {0: "not_configured_as_vtol", 1: "transition_to_fixed_wing",
            2: "transition_to_multicopter", 3: "multicopter", 4: "fixed_wing"}
    landed = {0: "unknown", 1: "on_ground", 2: "in_air",
              3: "taking_off", 4: "landing"}
    return {"vtol_state_raw": vtol_state,
            "vtol_label": vtol.get(vtol_state, "unrecognized"),
            "vtol_known": vtol_state in vtol,
            "landed_state_raw": landed_state,
            "landed_label": landed.get(landed_state, "unrecognized"),
            "landed_known": landed_state in landed}

for fields in [(3, 3), (0, 0), (250, 2)]:
    print(label_extended_state(*fields))

Explain undefined and unrecognized results explicitly

For the first tuple, the VTOL label is multicopter and the landed label is taking_off. Both known flags are true because both field-specific dictionaries contain value three. For the zero tuple, the labels are not_configured_as_vtol and unknown. Those are recognized enum entries too, so their known flags remain true. This illustrates why a known enum value should not be equated with a fully known aircraft condition. In particular, the landed field can carry a documented unknown state without becoming a malformed number or an unrecognized enum entry.

The third tuple keeps raw VTOL value two hundred fifty and labels it unrecognized, while landed value two retains the in_air label. Nothing in the helper changes one field to make it agree with the other. If an actual export produces an unfamiliar value, compare the sender dialect and decoder definitions while retaining the original observation. Silently rewriting it as a known state would remove evidence needed for that comparison. A descriptive lookup should make its limits visible rather than manufacture a coherent flight story from incomplete or mismatched information.

Test the field lookups independently before combining their report

One useful check holds landed_state fixed and varies vtol_state across its recognized values. The landed label and raw landed value should remain unchanged. Repeat the test in the other direction. This catches accidental reuse of one dictionary or one input variable for both fields, even when an example with equal numbers happens to look plausible. Include the boundaries zero and two hundred fifty-five, and retain the latter as an unrecognized raw value under the definitions used here. A range-valid number and a recognized enum entry are separate properties.

Do not test recognized values by truthiness. Zero is a documented entry in both dictionaries, and a false-like numeric value should not disappear merely because a reporting expression treats it as absent. Likewise, Python boolean values can behave like small integers in some operations; this helper checks the exact integer type to keep its teaching interface unambiguous. Those local input rules are distinct from wire decoding. A real decoder still needs its own tests, while this report needs evidence that each supplied field reaches the correct lookup and remains visible in the result.

Keep state observations separate from events and actions

A single state record is not a transition history. To discuss a real transition, the surrounding review needs relevant time information, source continuity and enough observations to support the statement being made. This function accepts none of those inputs. It cannot count takeoffs, measure transition duration or prove that a mission completed. Repeated labels also do not establish how long a state persisted when message timing and gaps are unknown. Keep any timeline analysis separate from the field lookup, and state which evidence supports each event rather than deriving it from a label alone.

For a useful handoff note, include the two field paths, raw values, labels, lookup source and decoder revision, alongside the log context. Record unresolved values as unresolved and preserve separate exports when investigating a change. The owner-supplied NiVO photograph provides aircraft context only; it is not a capture of the constructed examples or evidence of a particular controller configuration. The practical result is a readable pair of observations whose meanings remain attached to the correct fields. That supports a focused telemetry discussion without issuing a command or claiming a flight condition that the available evidence does not establish.

Technical references

  1. MAVLink common message: EXTENDED_SYS_STATE (245) ↗
  2. MAVLink VTOL and landed-state enum definitions ↗
← All articles

Related articles

All articles ↗
LET’S TAKE FLIGHT

Your next mission
starts with a conversation.

Talk to our team