Core

class mavsdk.core.ConnectionState(is_connected)

Bases: object

Connection state type.

Parameters:

is_connected (bool) – Whether the vehicle got connected or disconnected

class mavsdk.core.Core(async_plugin_manager)

Bases: AsyncBase

Access to the connection state and core configurations

Generated by dcsdkgen - MAVSDK Core API

async connection_state()

Subscribe to ‘connection state’ updates.

Yields:

connection_state (ConnectionState) – Connection state

name = 'Core'

Set timeout of MAVLink transfers.

The default timeout used is generally (0.5 seconds) seconds. If MAVSDK is used on the same host this timeout can be reduced, while if MAVSDK has to communicate over links with high latency it might need to be increased to prevent timeouts.

Parameters:

timeout_s (double) – Timeout in seconds