Info

class mavsdk.info.FlightInfo(time_boot_ms, flight_uid)

Bases: object

System flight information.

Parameters
  • time_boot_ms (uint32_t) – Time since system boot

  • flight_uid (uint64_t) – Flight counter. Starts from zero, is incremented at every disarm and is never reset (even after reboot)

class mavsdk.info.Identification(hardware_uid)

Bases: object

System identification.

Parameters

hardware_uid (std::string) – UID of the hardware. This refers to uid2 of MAVLink. If the system does not support uid2 yet, this is all zeros.

class mavsdk.info.Info(async_plugin_manager)

Bases: mavsdk._base.AsyncBase

Provide information about the hardware and/or software of a system.

Generated by dcsdkgen - MAVSDK Info API

async get_flight_information()

Get flight information of the system.

Returns

flight_info – Flight information of the system

Return type

FlightInfo

Raises

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

async get_identification()

Get the identification of the system.

Returns

identification – Identification of the system

Return type

Identification

Raises

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

async get_product()

Get product information of the system.

Returns

product – Product information of the system

Return type

Product

Raises

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

async get_speed_factor()

Get the speed factor of a simulation (with lockstep a simulation can run faster or slower than realtime).

Returns

speed_factor – Speed factor of simulation

Return type

double

Raises

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

async get_version()

Get the version information of the system.

Returns

version – Version information about the system

Return type

Version

Raises

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

name = 'Info'
exception mavsdk.info.InfoError(result, origin, *params)

Bases: Exception

Raised when a InfoResult is a fail code

class mavsdk.info.InfoResult(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.Enum

Possible results returned for info requests.

UNKNOWN

Unknown result

SUCCESS

Request succeeded

INFORMATION_NOT_RECEIVED_YET

Information has not been received yet

INFORMATION_NOT_RECEIVED_YET = 2
SUCCESS = 1
UNKNOWN = 0
class mavsdk.info.Product(vendor_id, vendor_name, product_id, product_name)

Bases: object

System product information.

Parameters
  • vendor_id (int32_t) – ID of the board vendor

  • vendor_name (std::string) – Name of the vendor

  • product_id (int32_t) – ID of the product

  • product_name (std::string) – Name of the product

class mavsdk.info.Version(flight_sw_major, flight_sw_minor, flight_sw_patch, flight_sw_vendor_major, flight_sw_vendor_minor, flight_sw_vendor_patch, os_sw_major, os_sw_minor, os_sw_patch, flight_sw_git_hash, os_sw_git_hash)

Bases: object

System version information.

Parameters
  • flight_sw_major (int32_t) – Flight software major version

  • flight_sw_minor (int32_t) – Flight software minor version

  • flight_sw_patch (int32_t) – Flight software patch version

  • flight_sw_vendor_major (int32_t) – Flight software vendor major version

  • flight_sw_vendor_minor (int32_t) – Flight software vendor minor version

  • flight_sw_vendor_patch (int32_t) – Flight software vendor patch version

  • os_sw_major (int32_t) – Operating system software major version

  • os_sw_minor (int32_t) – Operating system software minor version

  • os_sw_patch (int32_t) – Operating system software patch version

  • flight_sw_git_hash (std::string) – Flight software git hash

  • os_sw_git_hash (std::string) – Operating system software git hash