This is a customised Ardupilot firmware builder which allows to integrate custom patches, recall old builds etc. This is hosted on a private server but publicly accessible and the source code can be downloaded by anyone. Detailed instruction on how to build your custom firmware patcher based with this code are in the readme below. A live version of this app can be accessed here: https://ardupilot.equalmass.com

willpiper 27341e0c8c Initial commit for custom build server před 4 roky
templates 27341e0c8c Initial commit for custom build server před 4 roky
.gitignore 519e1f8813 Initial commit před 5 roky
LICENSE 519e1f8813 Initial commit před 5 roky
README.md bf27ab4257 Configure for Ardupilot server před 5 roky
app.py 27341e0c8c Initial commit for custom build server před 4 roky
app_test.py 29cb358c21 Fix tests před 5 roky
create_continents.py b5fa60d154 60 deg latitude limit fix před 5 roky
offline_check.py 52646dbdbd Offline check: fix block thresholds před 5 roky
offline_gen.py 17570b3eef Generate tile for 60deg latitude too před 5 roky
terrain_gen.py afbabec2f9 Updated tile generation před 5 roky
terraingen.ini 2d4a5ab6e9 Add reload před 5 roky
wsgi.py a891337a3d Fix typo in import před 5 roky

README.md

ArduPilot terrain generator

Summary

This is a website that pre-generates terrain files for Ardupilot. The user enters in the details of the area they wish the generate terrain for, then the website will generate a terrain.zip file containing the relevant dat files. The user will download this file and then then need to unzip to a "terrain" folder on the SD card in their flight controller.

Pre-generation of Terrain

To ensure the website operates responsively, the terrain for the whole (-60 -> +60 latitude) world must be pregenerated. This will take some time.

Run offline_gen.py to download the SRTM files from ardupilot.org and convert them to the dat file format. These files will be stored in the processedTerrain folder.

For developers

This website uses the flask library.

To install dependencies:

pip install flask wheel uwsgi numpy mavproxy crc16 pytest

To run:

python3 app.py

The unzipped processed files are temporarily stored in ./outputTer-tmp. These are deleted upon the zipping into a single downloadable file

The downloadable files are stored in ./outputTer

Each user request is given a UUID, which is incorporated into the folder/filename of the terrain files.

To run the unit tests, type pytest