How dronekit/dronekit-python works
DroneKit-Python is a Python API for applications that communicate with UAVs over MAVLink. The main workflow is an application connecting to a vehicle, receiving its telemetry and state, then managing missions or issuing direct control operations. The README documents these capabilities; sampled source shows vehicle initialization, message-driven attribute updates, and MAVLink transport threads. The central API is concentrated in one large module, so several domain responsibilities share its path. Unsampled capabilities are represented from README descriptions, without asserting unverified internal call paths.
Main entry points: __init__.py Vehicle API · mavlink.py MAVLink handler · util.py Logging utilities
Components 14
Vehicle API
- Connection setup
dronekit/__init__.py - Vehicle API
dronekit/__init__.py - Message listeners
dronekit/__init__.py - Logging utilities
dronekit/util.py
Vehicle Capabilities
- Telemetry locations
dronekit/__init__.py - Vehicle state
dronekit/__init__.py - Parameters
dronekit/__init__.py - Mission management
dronekit/__init__.py - Movement control
dronekit/__init__.py - Gimbal status
dronekit/__init__.py
MAVLink Transport
- MAVLink handler
dronekit/mavlink.py
Other components
- App developer
- Python application
- pymavlink
Connections 16
- App developer → Python application: creates
README.md - Python application → Connection setup: connects through
README.md - Connection setup → Vehicle API: returns
dronekit/__init__.py - Python application → Vehicle API: queries state
README.md - Python application → Mission management: manages missions
README.md - Python application → Movement control: controls movement
README.md - Vehicle API → MAVLink handler: uses transport
dronekit/__init__.py - MAVLink handler → pymavlink: uses MAVLink
dronekit/mavlink.py - MAVLink handler → Message listeners: dispatches messages
dronekit/mavlink.py - Message listeners → Telemetry locations: updates attributes
dronekit/__init__.py - Message listeners → Gimbal status: updates status
dronekit/__init__.py - Vehicle API → Vehicle state: exposes state
README.md - Vehicle API → Parameters: exposes parameters
README.md - Vehicle API → Mission management: exposes missions
README.md - Vehicle API → Movement control: exposes control
README.md - Vehicle API → Logging utilities: logs through
dronekit/__init__.py