Skip to content

fihuer/projet-inno-parrot

Repository files navigation

Newest version is available here: https://github.com/Viq111/ARDroneLib

Python ARDrone Libray for AR.Drone 2.0 to 2.3

ARDroneLib is a library for AR.Drone 2 developped in Python You can control your AR.Drone with our library It's as easy as:

import ARDroneLib
drone = ARDroneLib.Drone()
drone.takeoff()
drone.land()

It doesn't require any third party library and can work as a stand-alone or an easy library to access your drone

Here is the description of each file:

######################

ARDroneConfig

###################### This is a sub-library to easily send configuration to your drone. See inside the file which config you can send, but it can basicaly send config like activate tag detection or go to a GPS Navpoint Example:

import ARDroneLib, ARDroneConfig
drone = ARDroneLib.Drone(my_callback_function)
drone.start_navdata()
ARDroneConfig.activate_tag(drone)

Then the tag detection data will be sent to the callback function

######################

ARDroneGUI

###################### This file implements a simple GUI to control your drone and print data easily Example:

import ARDroneLib, ARDroneGUI
drone = ARDroneLib.Drone()
gui = ARDroneGUI.ControlWindow(default_action=drone.hover)
gui.add_action("", drone.forward)
gui.change_text("Hello World !")

######################

ARDroneLib

###################### This is the main file which enable you to control your drone All the easy function are implemented to control your drone without taking care of the information you have to send. Example:

import ARDroneLib
drone = ARDroneLib.Drone()
drone.takeoff()
drone.forward()
drone.hover()
drone.land()

######################

ARDroneNavdata

###################### This is the second most important file which enable you to receive data from the drone. You don't actually need to call it into your program because ARDroneLib do it for you, you just have to create a callback function which receive a navdata dictionary as the sole argument. See inside the file to know what is sent back to your function Example:

import ARDroneLib
drone = ARDroneLib.Drone(data_callback=my_callback_function)
drone.start_navdata()

######################

ARDroneTest

###################### This file is a quick example of the library which enables you to command and receive info from your drone without even writing a single line of code. Look at this file to quickly understand how the program is working.

About

Git Repo pour notre projet Inno

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages