Get desktop application:
View/edit binary Protocol Buffers messages
Discover and set flight modes at runtime. The modes are queried from the vehicle using the MAVLink standard modes protocol (AVAILABLE_MODES, CURRENT_MODE). For autopilots that don't implement it, a list of known modes is used as a fallback. Modes are identified by name. Standard modes have a fixed name, e.g. "Position" or "Mission", other modes use the name reported by the vehicle. Setting a mode works the same way for both.
Set mode by name. The name needs to match exactly (case-sensitive) the name of one of the available modes.
Name of the mode to set
Subscribe to the list of available modes. The list is updated whenever the vehicle reports that its modes have changed.
(message has no fields)
The available modes
Subscribe to the current mode.
(message has no fields)
The current mode
Mode type.
Used in: ,
Name of the mode, e.g. "Position" or "Stabilize"
Autopilot specific custom mode
True if this is a MAVLink standard mode, e.g. "Position" or "Mission"
True if the mode can be set by the user
True if the mode is for advanced users only
True if the mode runs autonomously, e.g. Mission or Land
Result type.
Used in:
Result enum value
Human-readable English string describing the result
Possible results returned for mode requests.
Used in:
Unknown result
Request was successful
No system is connected
Connection error
Vehicle is busy
Request was denied, e.g. because the mode can't be entered right now
Mode or command is not supported
Request timed out
Request failed
No available mode with this name
The available modes have not been received yet