Giter VIP home page Giter VIP logo

precland's Introduction

Precland

Precision Land for ArduPilot

Preqs

  • Mavproxy
  • DroneKit

Setup

  • Navigate to your home directory:
    $ cd

  • Download my fork of ardupilot:
    $ git clone https://github.com/djnugent/ardupilot

  • Download precland:
    $ git clone https://github.com/djnugent/precland

  • Download the most recent version of pymavlink:
    $ git clone https://github.com/mavlink/mavlink

  • Uninstall any previous versions of pymavlink:
    $ sudo pip uninstall pymavlink

  • Navigate into pymavlink directory:
    $ cd /mavlink/pymavlink

  • Install pymavlink:
    $ sudo python install setup.py

  • Add sim_vehicle.sh and PrecisionLand to your path:
    $ sudo nano ~/.bashrc
    ADD THE FOLLOWING TO THE END OF THE FILE:
    export PATH=$PATH:$HOME/ardupilot/Tools/autotest
    export PYTHONPATH=$PYTHONPATH:$HOME/precland
    Use ctrl-x to exit and save the file

  • Re-run .bashrc / Reload PATH variables:
    $ . ~/.bashrc

  • Have Dronekit load on startup:
    $ echo "module load droneapi.module.api" >> ~/.mavinit.scr

  • Navigate to ardupilot/ArduCopter:
    $ cd /ardupilot/ArduCopter

  • Intialize SITL:
    $ sim_vehicle.sh -w

  • Disable prearm checks:
    $ param set ARMING_CHECK 0

  • Kill SITL:
    Press ctrl-c

Run Precision land with SITL:

  • Navigate to ardupilot/ArduCopter:
    $ cd /ardupilot/ArduCopter

  • Start SITL:
    $ sim_vehicle.sh --console --map

  • Arm vehicle:
    MAV> arm throttle

  • Switch to guided mode:
    MAV> mode guided

  • Takeoff:
    MAV> takeoff 20

  • Start PrecsionLand:
    MAV> api start /home/<your_username>/precland/PrecisionLand.py

  • Kill SITL:
    Press ctrl-c

See my progress

Related projects

precland's People

Contributors

igor-nap avatar arthurbenemann avatar

Watchers

James Cloos 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.