Getting Started¶
~ Github ~ PyPI ~ Online Docs ~
Requirements¶
Python 3.4 or later
opencv 3.0 or later (for video support)
Installation¶
pip install pyardrone
Basic Usage¶
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
See also