Dronekit-python fork
- 1 Overview
- 2 Software
- 2.1 Setup
- 2.2 Usage
- 2.3 Development
Overview
Dronekit-python is a library Autonomy uses to send MAVLink messages between the drone and the ground station. However, the library is outdated and incompatible with Python 3.10 and above. Autonomy made a fork from their GitHub source code, which is updated. It is meant to be used as a submodule to replace the dronekit library.
Repository: GitHub - UWARG/dronekit: DroneKit-Python library for communicating with Drones via MAVLink.
Software
Setup
Navigate to a directory in the project where you want to install this library/module.
Run
git submodule add -b WARG-minimal https://github.com/UWARG/dronekit
.-b WARG-minimal
selects the branch (this branch includes only the core components)
Usage
Run
git submodule init --recursive
in your project rootRun
git submodule update --remote --recursive
in your project rootCopy the contents from
requirements-copyme.txt
to therequirements.txt
of the project that will use dronekit.Install the library dependencies with
pip install -r requirements.txt
.Import the library the same way as you would import your own modules in a python project.
Development
Please note that the master branch is the default branch which tracks the master branch from GitHub - dronekit/dronekit-python: DroneKit-Python library for communicating with Drones via MAVLink.. Do not edit this branch, it will only be used for rebasing during maintenance.
All development should be done in the branch WARG-minimal
, which will be mostly maintenance efforts.
Â