https://github.com/ardupilot/terraingen
Ardupilot Terrain Generator website
https://github.com/ardupilot/terraingen
ardupilot
Last synced: 11 months ago
JSON representation
Ardupilot Terrain Generator website
- Host: GitHub
- URL: https://github.com/ardupilot/terraingen
- Owner: ArduPilot
- License: gpl-3.0
- Created: 2020-05-23T08:27:21.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-08-19T06:54:32.000Z (almost 2 years ago)
- Last Synced: 2025-04-20T09:42:52.512Z (over 1 year ago)
- Topics: ardupilot
- Language: Python
- Size: 91.8 KB
- Stars: 11
- Watchers: 13
- Forks: 19
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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 for SRTM3,
-84 -> +84 latitude for SRTM1) 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 -r requirements.txt``
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``
A systemd service is provided for running the WSGI server.