Features | Requirements | Documentation | Usage | Communication | LICENSE
Bebop drone
This code performs the generation of points in the space to realize an autonomous route of precision with a VANT Parrot Bebop 1 or 2.
Features
- MoveBy (Move the drone to a relative position)
- movePCMD (Move the drone with timed movements roll-pitch-yaw)
- moveTo (Move the drone to a specified GPS location)
- XBOX control (Move the drone with XBOX control)
- get IMU-GPS data
- path planning with map waypoints without MAVLink
Requirements
Software
- Python 2.7+
- Numpy
- Tkinter
- OpenCV
Hardware
- Bebop Drone 1-2 Firmware version: 4.05
- Computer with WiFi connection
Documentation
Docs:
http://developer.parrot.com/docs/bebop/#general-information
Navdata:
https://github.com/Parrot-Developers/arsdk-xml
https://github.com/Parrot-Developers/arsdk-xml/blob/master/xml/ardrone3.xml
Usage
- TurnOn the Drone (Make sure the battery is charged)
- Connect to the WiFi generated by the Drone from the computer
- Open the Terminal or Run on Python software
- Run the code 1_Takeoff.py in Python.
$ python 1_Takeoff.py
Takeoff
import time
from core.bebop import *
drone=Bebop()
#Starting to Fly (1m)
drone.takeoff()
time.sleep(4)
drone.hover()
drone.land()
Get IMU-GPS data
import time
from core.bebop import *
drone = Bebop()
file = time.strftime("%Y%m%d-%H%M%S")
while True:
drone.update()
(lat, lon, alt)=drone.positionGPS
(roll, pitch, yaw)=drone.angle
if lat==500 or lon==500:
print "No GPS signal"
time.sleep(1)
else:
f = open(file,'a')
print "GPS data: ", lat, lon, alt, "Gyroscope data:", roll, pitch, yaw, " Saved"
f.write(str(lat) +'\t'+ str(lon)+'\t'+ str(alt)+'\t'+ str(roll)+'\t'+ str(pitch)+'\t'+ str(yaw)+'\n')
f.close()
time.sleep(0.5)
PathPlanning
- Connect to the Internet
- Run map.py
- Placing flight points
- If there is a mistake, click on Delete Waypoints
- To travel, connect to the bebop network, click on Start waypoints with Bebop
To control the Bebop under code development
For easier understanding, in the following order:
- 0_getData.py
- 1_Takeoff_code.py
- 2_MoveBy.py
- 3_MoveBy2.py
- 4_MoveSpeed.py
- 5_MoveYAWtimed.py
http://developer.parrot.com/docs/bebop/#general-information
Communication
- If you found a bug, please open an issue
- Also, if you have a feature request, please open an issue
- If you want to contribute, submit a pull request
License
Core data and Copyright: https://github.com/robotika/katarina