Git Product home page Git Product logo

terraingen's Introduction

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.

terraingen's People

Contributors

stephendade avatar williangalvani avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.