Skip to content

drone.telemetry.flight_mode returns UNKNOWN for many Ardupilot flight modes #775

@SabrCat

Description

@SabrCat

I've been working with Ardupilot and MAVSDK to write some data display code. While writing this, I noticed that MAVSDK can not identify most Ardupilot flight modes. Most other telemetry packets I have tested appear to work as expected (minor notes that rc signal strength was unknown with SITL and that imu() never returned (which may be a config issue on my end)).

I assume this is due to the functionality for them not being implemented, or am I doing something wrong here?

If this is missing functionality, how could I help to implement this?

I did some quick testing with Mission Planner SITL in Plane mode, and this is what I found:

Known modes:
[ mavsdk name (ardupilot name) ]
MANUAL
STABILIZED (STABILIZE)
ACRO
ALTCTL (AUTOTUNE) [possible wrong identification?]
MISSION (AUTO)
RETURN_TO_LAUNCH (RTL)
HOLD (LOITER)

Unknown modes:
TAKEOFF
CIRCLE
TRAINING
FBWA
FBWB
CRUISE
AVOID_ADSB
GUIDED
[ quadplane modes could not be tested with SITL ]
[ thermal could not be tested with SITL ]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions