Get desktop application:
View/edit binary Protocol Buffers messages
Enable direct MAVLink communication using libmav.
Load custom MAVLink message definitions from XML. This allows loading custom MAVLink message definitions at runtime, extending the available message types beyond the built-in definitions.
The custom MAVLink XML definition content
Send a command and wait for its final COMMAND_ACK. The command is a COMMAND_LONG or COMMAND_INT message with its fields as JSON, e.g. message_name "COMMAND_LONG" and fields_json {"target_system":1,"target_component":1,"command":400,"param1":1,...}. The command is retransmitted if no ack arrives. MAV_RESULT_IN_PROGRESS acks are handled internally: the command is not retransmitted after one, and the call keeps waiting for the final ack. RESULT_SUCCESS only means that a final COMMAND_ACK was received. Whether the command was accepted is in the "result" field of the returned ack (MAV_RESULT, e.g. 0 for MAV_RESULT_ACCEPTED, 2 for MAV_RESULT_DENIED). Any other result means no final ack was received and the returned ack is empty.
COMMAND_LONG or COMMAND_INT message to send
The final COMMAND_ACK, check its "result" field (MAV_RESULT); only set on RESULT_SUCCESS
Send a MAVLink message directly to the system. This allows sending any MAVLink message with full control over the message content.
The MAVLink message to send
Subscribe to incoming MAVLink messages. This provides direct access to incoming MAVLink messages. Use an empty string in message_name to subscribe to all messages, or specify a message name (e.g., "HEARTBEAT") to filter for specific message types.
MAVLink message name to filter for (e.g., "HEARTBEAT"), empty string = all messages
The received MAVLink message
Result type.
Used in: , ,
Result enum value
Human-readable English string describing the result
Possible results returned for action requests.
Used in:
Unknown result
Request succeeded
Error
Invalid MAVLink message
Invalid field name or value
Connection error
No system connected
Request timed out
A complete MAVLink message with all header information and fields
Used in: , , ,
MAVLink message name (e.g., "HEARTBEAT", "GLOBAL_POSITION_INT")
System ID of the sender (for received messages)
Component ID of the sender (for received messages)
Target system ID (for sending, 0 for broadcast)
Target component ID (for sending, 0 for broadcast)
All message fields as single JSON object