~ Github ~ PyPI ~ Online Docs ~
- Python 3.4 or later
- opencv 3.0 or later (for video support)
pip install pyardrone
import time
from pyardrone import ARDrone
drone = ARDrone()
drone.navdata_ready.wait() # wait until NavData is ready
while not drone.state.fly_mask:
drone.takeoff()
time.sleep(20) # hover for a while
while drone.state.fly_mask:
drone.land()
To move forward:
while True:
drone.move(forward=1) # move forward at full speed
.. seealso:: * :ref:`ardrone` * `ARDrone Developer Guide from Parrot <https://github.com/afg984/pyardrone/raw/dev-resources/ARDrone_Developer_Guide.pdf>`_ (mirrored)