Giter Club home page Giter Club logo

csv2djipilot's Introduction

csv2djipilot creates a DJI kml file to be imported in a DJI Pilot waypoints. Csvfile contains

point_name;lon;lat;height;heading;gimbal;speed;turnmode;actions_sequence
waypoint_A;2.2595689652949886;48.02450015337408;15.0;180;-30;5;AUTO;H2000.SHOOT.A-89
waypoint_B;2.2596269016191606;48.02450001605067;22.98;180;-50;15;CC;H2000.SHOOT.H3000.REC
waypoint_C;2.2596653502913546;48.02450001248549;25.98;180;-60;5;C;H2000.SHOOT.STOPREC

speed between 0 to 15 m/s

turnmode is AUTO, C for clockwise or CC for counter clockwise

actions sequence is a list of actions separted by points without space. There could be no action, one or multiple actions.

  • H1000 => Hover 1000ms = 1s
  • SHOOT => take a picture
  • G40 =>Gimbal a -40°
  • REC => start video recording
  • STOPREC => stop video recording
  • A-170 => turn aircraft to -170 . heading has a range of [-180, 180] degrees, where 0 represents True North.

usage: csv2djipilot.py [-h] [-o OUTPUT] [--onfinish {hover,gohome}] csvfile

positional arguments: csvfile Specify csv input file

optional arguments: -h, --help show this help message and exit -o OUTPUT, --output OUTPUT Specify output file (default:stdout) --onfinish {hover,gohome}

ex:

python3 csv2djipilot.py csvfile.csv -o output.kml

tested with DJI Matrice 210 RTK V2

csv2djipilot's People

Contributors

sbonaime 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.