Get desktop application:
View/edit binary Protocol Buffers messages
Provide the flight modes of an autopilot, the counterpart of the Modes plugin. The modes are announced using the MAVLink standard modes protocol (AVAILABLE_MODES, AVAILABLE_MODES_MONITOR, CURRENT_MODE). Once modes are set, this plugin also handles mode change requests (MAV_CMD_DO_SET_STANDARD_MODE, MAV_CMD_DO_SET_MODE and SET_MODE) for those modes, instead of the deprecated flight mode API of the ActionServer plugin.
Respond to the last mode change request. If the request is accepted, the requested mode becomes the current mode. Otherwise the vehicle stays in its current mode, e.g. if it can't switch to Position without GPS.
The answer to the request
Set the modes the vehicle provides. Ground stations are told that the list changed so they download it again. From then on, mode change requests are handled by this plugin.
The available modes
Set the mode the vehicle is in.
Name of the mode, one of the available modes
Subscribe to mode change requests. Requests for a mode in the list are reported here and need to be answered with RespondModeRequested. Until then, the ground station is told that the request is in progress.
(message has no fields)
The requested mode
Mode type.
Used in: ,
Name of the mode, for a standard mode one of the standard names, e.g. "Position" or "Mission"
Autopilot specific custom mode, needs to be unique
True if this is a MAVLink standard mode
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
Possible answers to a mode change request.
Used in:
Unknown
The vehicle switches to the mode
The vehicle can't switch to the mode right now, e.g. it has no GPS
The vehicle doesn't allow switching to the mode
Switching to the mode failed
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
Modes are invalid, e.g. none are given, a name or custom mode is used twice, or a standard mode name is unknown
No available mode with this name
There is no mode change request to respond to
The feedback is unknown