Skip to content

brandneb/python-ardrone

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ARDrone for Windows

This is a clone of the original libardrone repository adapted to work with windows.

Setup

Requirements:

  1. Download ffmpeg for windows (static binaries)

  2. Add the build folder where ffmpeg.exe resides (usually .\bin) to your PATH

  3. You should be ready to go. To install the script use the original setup.py

Getting Started:

>>> import libardrone
>>> drone = libardrone.ARDrone()
>>> # You might need to call drone.reset() before taking off if the drone is in
>>> # emergency mode
>>> drone.takeoff()
>>> drone.land()
>>> drone.halt()

The drone's property image contains always the latest image from the camera. At present this is in the format of a numpy array with dimensions (width, height, 3). This may change in future. The drone's property navdata contains always the latest navdata.

Demo:

There is also a demo application included which shows the video from the drone and lets you remote-control the drone with the keyboard:

RETURN      - takeoff
SPACE       - land
BACKSPACE   - reset (from emergency)
a/d         - left/right
w/s         - forward/back
1,2,...,0   - speed
UP/DOWN     - altitude
LEFT/RIGHT  - turn left/right

Here is a video of the library in action:

Repository:

The public repository is located here for the AR.Drone 1.0:

git://github.com/venthur/python-ardrone.git

At present the AR.Drone 2.0 has a separate fork here:

git://github.com/adetaylor/python-ardrone.git

Requirements:

This software was tested with the following setup:

  • Python 2.7.6
  • Unmodified AR.Drone firmware 2.0

License:

This software is published under the terms of the MIT License:

http://www.opensource.org/licenses/mit-license.php

About

Python library for the AR.Drone

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%