LogStreaming

class mavsdk.log_streaming.LogStreaming(async_plugin_manager)

Bases: AsyncBase

Provide log streaming data.

Generated by dcsdkgen - MAVSDK LogStreaming API

async log_streaming_raw()

Subscribe to logging messages

Yields:

logging_raw (LogStreamingRaw) – A message containing logged data

name = 'LogStreaming'
async start_log_streaming()

Start streaming logging data.

Raises:

LogStreamingError – If the request fails. The error contains the reason for the failure.

async stop_log_streaming()

Stop streaming logging data.

Raises:

LogStreamingError – If the request fails. The error contains the reason for the failure.

exception mavsdk.log_streaming.LogStreamingError(result, origin, *params)

Bases: Exception

Raised when a LogStreamingResult is a fail code

class mavsdk.log_streaming.LogStreamingRaw(data_base64)

Bases: object

Raw logging data type

Parameters:

data_base64 (std::string) – Ulog file stream data encoded as base64

class mavsdk.log_streaming.LogStreamingResult(result, result_str)

Bases: object

Result type.

Parameters:
  • result (Result) – Result enum value

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

class Result(value)

Bases: Enum

Possible results returned for logging requests

Values

SUCCESS

Request succeeded

NO_SYSTEM

No system connected

CONNECTION_ERROR

Connection error

BUSY

System busy

COMMAND_DENIED

Command denied

TIMEOUT

Timeout

UNSUPPORTED

Unsupported

UNKNOWN

Unknown error

BUSY = 3
COMMAND_DENIED = 4
CONNECTION_ERROR = 2
NO_SYSTEM = 1
SUCCESS = 0
TIMEOUT = 5
UNKNOWN = 7
UNSUPPORTED = 6