MavlinkDirect

Bases: Exception

Raised when a MavlinkDirectResult is a fail code

Bases: object

Result type.

Parameters:
  • result (Result) – Result enum value

  • result_str (std::string) – Human-readable English string describing the result

Bases: Enum

Possible results returned for action requests.

Values

UNKNOWN

Unknown result

SUCCESS

Request succeeded

ERROR

Error

INVALID_MESSAGE

Invalid MAVLink message

INVALID_FIELD

Invalid field name or value

CONNECTION_ERROR

Connection error

NO_SYSTEM

No system connected

TIMEOUT

Request timed out

Bases: object

A complete MAVLink message with all header information and fields

Parameters:
  • message_name (std::string) – MAVLink message name (e.g., “HEARTBEAT”, “GLOBAL_POSITION_INT”)

  • system_id (uint32_t) – System ID of the sender (for received messages)

  • component_id (uint32_t) – Component ID of the sender (for received messages)

  • target_system (uint32_t) – Target system ID (for sending, 0 for broadcast)

  • target_component (uint32_t) – Target component ID (for sending, 0 for broadcast)

  • fields_json (std::string) – All message fields as single JSON object