This repository provides basic tools and examples to run control ArduPilot SITL using MAVSDK.
- docker
This folder contains docker files to build a docker container which contains the dev environment for ArduPilot SITL as well as MAVSDK.
- docs
This contains documentation on pecularities of various ArduPilot features needed to control a vehicle running this autopilot. This will grow over time. Best documentation is however the official Ardupilot documentation:
- examples This contains many examples on how to use MAVSDK library to control ArduPilot SITL.
The following sequence should be followed in order to setup everything:
-
Build the docker images in
docker/
folder using the script./docker/build_and_push_docker_images.sh
-
Clone the MAVSDK library on your system. Checkout specfic tag or version if don't want to use the main brach.
-
Adapt the
PATH_TO_MAVSDK
andPATH_TO_TOOLS
in the scriptrun_docker.sh
-
Run the script
run_docker.sh
-
In the container so launched, compile MAVSDK library by running the script
build_mavsdk.sh
-
Similarly build the examples by running the script
build_examples.sh
-
Launch the SITL by running
run_sitl_apm.sh
-
Run any of the examples by running
run_example.sh
For any questions, please raise issue in this repository.