Info¶
- class mavsdk.info.FlightInfo(time_boot_ms, flight_uid, duration_since_arming_ms, duration_since_takeoff_ms)¶
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)
duration_since_arming_ms (uint32_t) – Duration since arming in milliseconds
duration_since_takeoff_ms (uint32_t) – Duration since takeoff in milliseconds
- class mavsdk.info.Identification(hardware_uid, legacy_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.
legacy_uid (uint64_t) – Legacy UID of the hardware, referred to as uid in MAVLink (formerly exposed during system discovery as UUID).
- class mavsdk.info.Info(async_plugin_manager)¶
Bases:
AsyncBase
Provide information about the hardware and/or software of a system.
Generated by dcsdkgen - MAVSDK Info API
- async flight_information()¶
Subscribe to ‘flight information’ updates.
- Yields:
flight_info (FlightInfo) – The next flight information
- async get_flight_information()¶
Get flight information of the system.
- Returns:
flight_info – Flight information of the system
- Return type:
- 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:
- Raises:
InfoError – If the request fails. The error contains the reason for the failure.
- async get_product()¶
Get product information of the system.
- 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.
- 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
Possible results returned for info requests.
Values¶
- UNKNOWN
Unknown result
- SUCCESS
Request succeeded
- INFORMATION_NOT_RECEIVED_YET
Information has not been received yet
- NO_SYSTEM
No system is connected
- INFORMATION_NOT_RECEIVED_YET = 2¶
- NO_SYSTEM = 3¶
- 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, flight_sw_version_type)¶
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
flight_sw_version_type (FlightSoftwareVersionType) – Flight software version type
- class FlightSoftwareVersionType(value)¶
Bases:
Enum
These values define the type of firmware/flight software release
Values¶
- UNKNOWN
Unknown type
- DEV
Development release
- ALPHA
Alpha release
- BETA
Beta release
- RC
Release candidate
- RELEASE
Official stable release
- ALPHA = 2¶
- BETA = 3¶
- DEV = 1¶
- RC = 4¶
- RELEASE = 5¶
- UNKNOWN = 0¶