Questions tagged [dronekit-python]

DroneKit-Python is for questions on the Python library for the DroneKit set of APIs for drones from 3D Robotics.

DroneKit is a set of APIs created by 3D Robotics. The Dronekit-Python tag is specifically for questions related to its Python library.

124 questions
2
votes
1 answer

Dronekit python vehicle connection timeout

we are having a bit of trouble getting Dronekit working with our copter. Thus far we have tested everything using SITL and it all works fine, however this success has not transferred across to the real thing very well. Our setup is: Windows GCS…
SCTaylor
  • 131
  • 3
  • 12
2
votes
0 answers

default to floats in python

I'm writing some code that uses GPS coordinates but I'm running into a headache with python 2. I'm using the dronekit python library to be specific. Here's a sample of what I'm trying to do. current_location = LocationGlobalRelative(x,y) dx =…
Alex B
  • 21
  • 3
2
votes
0 answers

Cannot install package via pip on Raspbian

I'm trying to install two packages I need to connect my Raspberry Pi to a Pixhawk Flight Controller. The packages I need are installed via pip, but I keep on getting the same errors when attempting to install. Can any Python/Raspbian expert please…
2
votes
1 answer

Exact Return Values of "Attitude" and "Velocity" In Dronekit API

I have perused the Dronekit-Python API Reference thoroughly and before I continue with my Masters Engineering project I need some more information. I am using a Raspberry-Pi 2B as a companion computer with the Pixhawk Flight Controller to obtain…
Josua B
  • 71
  • 6
2
votes
3 answers

Drone-kit Python would not let me change modes in the simulator while in air

Whenever I try changing modes in the air, drone-kit python script continues to leave the copter in GUIDED mode. I essential want my python script to allow my drone to fly through a certain location and switch its mode to LOITER in the air and stay…
2
votes
2 answers

Install SITL Error: what am I missing?

I am stuck with getting the SITL to install and I have tried many ways. Please I don't know how to proceed. I followed the instructions in http://dev.ardupilot.com/wiki/sitl-nati ... _in_cygwin I am able to make px4-v2 The paths are set correctly in…
Bimo
  • 21
  • 2
2
votes
2 answers

High-rate telemetery / position / attitude

From a high level, I am trying to combine my Pixhawk telemetry data (specifically GPS position and vehicle attitude) with other sensor data on my RaspPi 2, that is connected via DroneKit. I have the Pixhawk connected via the GPIO header, at a 115200…
Mike Klinker
  • 33
  • 1
  • 3
2
votes
3 answers

Run python script with droneapi without terminal

I managed to run examples in command prompt after running mavproxy.py and loading droneapi. But when I double click on on my script, it throws me "'local_connect' is not defined", it runs in terminal as was told above, but I cannot run it only with…
Sony Nguyen
  • 103
  • 1
  • 1
  • 4
2
votes
1 answer

What are dronekit-python dependencies?

The dronekit Getting Started page suggests installing WinPython to use dronekit-Python on Windows because it includes the dependencies. I already have a working Python installation and I prefer not to risk messing it up with WinPython. What are the…
AirMocs
  • 21
  • 2
2
votes
1 answer

GPS Timestamp with Dronekit-python API

I'm currently using the Dronekit-python API with MAVProxy to log attitude from a Pixhawk on an onboard computer running Linux. These measurements need to be integrated with external data for image processing, and I'm hoping to use a GPS timestamp…
Connor
  • 23
  • 4
1
vote
1 answer

Dronekit-sitl fails to bind on default port 5760

I have dronekit-sitl installed in a python3 virtual environment on my Windows 10 machine and have used it before by running dronekit-sitl copter with no issues. However, as of today I am running across what seems to be a permission issue when trying…
kyrlon
  • 1,065
  • 2
  • 8
  • 16
1
vote
1 answer

How to get specific values (eg. battery2, servo outputs) available in Mission Planner through Dronekit?

I am currently using dronekit-python to implement somewhat of a Mission Planner clone, as an API. I've generally been able to replicate most important features from Mission Planner; however, some features don't seem to be present. One such feature…
Krishnan Shankar
  • 780
  • 9
  • 29
1
vote
0 answers

Is there any method to convert any location in global frame to NED frame and from NED frame to global frame in drone-kit?

I am trying to make predict the crash location of a quadrotor if propulsion fails. My main objective is to help the search after a quad crashes. Now my "Trajectory" class takes the positon and orientaion an velocity of the quad in NED frame. I use…
Samm Flynn
  • 314
  • 2
  • 13
1
vote
1 answer

Takeoff after Landing using Dronekit

I am using a Pixhawk 2.1 Cube on Arducopter v3.6.4 with a Raspberry Pi 3 Model B running dronekit scripts. What I want to do is takeoff, go to a point and land there and after some time take off and return to the home location or some other point. I…
SohaibAJ
  • 83
  • 9
1
vote
2 answers

DroneKit for DJI drone

I am learning to control drone using different SDKs or development kits and came across the dronekit. What droneKit do is: DroneKit-Python 2.x helps you create powerful apps for UAVs. These apps run on a UAV’s Companion Computer, and augment the…
Muhammad Faizan Khan
  • 10,013
  • 18
  • 97
  • 186
1
2
3
8 9