Skip to main content

Anti-collision Ardupilot terrain following mission generator.

Project description

This is a python class to generate Ardupilot mission files and auxiliary files (Stats file and export files). The output mission file contains WP's set to 'ABSOLUTE' heights for better mission previsibility and can be imported directly in Mission Planner.

Beta (and use at your own risk)

Features

  • Configurable parameters (flight altitude, altitude tolerance, max distance between WPs, takeoff/land optional commands)
  • Anti-collision check, guarantees minimal altitude above ground along all flight path
  • Exports to reference KML file (and other formats) containing 3D WP's, paths and stats
  • Doesn't care about your vector/DEM input files DATUM/CRS, converts accordingly
  • Downloads necessary DEM scenes automatically (requires a Open Topography API key https://opentopography.org/) or loads custom user DEM.
  • Outputs a stat file containing minimal flight altitude, max flight altitude, max generated inclination and suggested RTL_ALT (max DEM scene altitude plus <flightAlt>)

How it works

  • Draw a path in GoogleEarth containing desired flight path. Export the path to a KML/KMZ file. Generated mission will respect the vertices from your path, converting vertices to WP's.

  • Check example.py about how to use it. The parameters are set by the command:

    setparams(<flightAlt>, <tolerance>, <maxDistBetweenWPs>, Takeoff=<bool>, Land=<bool>)

    <flightAlt> => Flight altitude above ground. This will be the minimal altitude to be respected along all path
    <tolerance> => Flight altitude tolerance (in %). Means Minimal altitude along path can reach <flightAlt> minus tolerance
    <maxDistBetweenWPs> => Divide your original WP's into sections (creating another WP's), respecting this max distance between WP's. The lower this parameter the more a 'terrain following' effect. Set this to zero to not create any aditional WP's.
    Takeoff=<bool> => Optional. Converts the first WP's from your file into Takeoff command
    Land=<bool> => Optional. Converts the last WP from your file into Land command.

How to install

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

terraclip-1.0b2.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

terraclip-1.0b2-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file terraclip-1.0b2.tar.gz.

File metadata

  • Download URL: terraclip-1.0b2.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.5

File hashes

Hashes for terraclip-1.0b2.tar.gz
Algorithm Hash digest
SHA256 7fbdf4457fd3f73fb60235111f975414c89a856a8f148f8ae85c63aae11dd72f
MD5 094c78781a5a9f68b50a407d95731a6f
BLAKE2b-256 961aa0e03c160cb62b27a66b39416eaa72588d16775e71720e1ae0d15586fd53

See more details on using hashes here.

File details

Details for the file terraclip-1.0b2-py3-none-any.whl.

File metadata

  • Download URL: terraclip-1.0b2-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.5

File hashes

Hashes for terraclip-1.0b2-py3-none-any.whl
Algorithm Hash digest
SHA256 849d8ce5ece82c92cbc6362ce66fe5a7015f5c430c9c48c1df3f0560b2982286
MD5 a073f7a0e67055f28f9bd53174f906eb
BLAKE2b-256 13b531c5a5a9eecaddcf69786e03d2c5f0e0e9d8b401f22f44c2cd8bbdad7c41

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page