Features | Requirements | Documentation | Usage | Communication | LICENSE
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.
- 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
- Python 2.7+
- Numpy
- Tkinter
- OpenCV
- Bebop Drone 1-2 Firmware version: 4.05
- Computer with WiFi connection
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
- 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
import time
from core.bebop import *
drone=Bebop()
#Starting to Fly (1m)
drone.takeoff()
time.sleep(4)
drone.hover()
drone.land()
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)
- 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
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
- 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
Core data and Copyright: https://github.com/robotika/katarina