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
6
votes
1 answer

How to use dronekit with SITL vagrant VM from dev Wiki

I am following the getting started instructions in DroneKit-Python to set up DroneKit in a VM. To make things easier for myself I started by Setting up SITL using Vagrant. However I can't work out how to have SITL running and talk to it from the…
Hamish Willee
  • 372
  • 1
  • 3
  • 11
5
votes
1 answer

How to send waypoints programmatically to drone?

I am very new at this and trying to get an understanding of this. I have read a lot on the DroneKit-Python site trying to figure out how exactly am I able to communicate with it. Drone I am currently using is Iris+ I have looked more and there are…
zyeek
  • 1,277
  • 12
  • 27
4
votes
1 answer

Connect Dronekit and Mission Planner simultaneously to Pixhawk over 3DR radio

I like Dronekit for controlling my copter, and I like Mission Planner for monitoring my copter during a flight. I'd really like to have both sets of functionality. Is there a way to connect Dronekit and Mission Planner to the Pixhawk at the same…
aknight0
  • 163
  • 2
  • 14
3
votes
1 answer

Accessing a Video Stream running on local HTTP host

An external camera is outputing a video stream on http://localhost:3000/index.html. I want to make this stream available to me for opencv face detection and other algorithms. What I have tried so far: import cv2 import…
3
votes
2 answers

How to set GUIDED_NOGPS mode with Arducopter on Dronekit?

How do I command Arducopter to enter guided_nogps mode? I am planning to operate in a gps denied environment, and although other posts indicate this is possible with guided-nogps, I cannot see how to set that mode. Using Dronekit (python)…
M Isted
  • 31
  • 1
  • 4
3
votes
2 answers

Have any of these attempts to get GPS time into a mavlink been successful?

I'm trying to get GPS time out of a pixhawk. I've found a bunch of discussions about such but none that appear to have been resolved. Is there any update? This guy and this guy were both told to just use system time (which is not UTC) I also tried…
r4space
  • 31
  • 4
3
votes
2 answers

MAVProxy installed by Python can't find required modules

I installed droneapi in the same manner given in the tutorial. However, it's missing all of the important modules that come with MAVProxy, such as console, wx, etc. Was it supposed to install these modules, or should I move them over from MAVProxy…
Indeed
  • 139
  • 14
3
votes
3 answers

is dronekit-python api only for Mavproxy?

This is the website of dronekit-python api. http://python.dronekit.io/ I checked the examples and also online git repo, it seems all examples are built on top of mavproxy. and API itself doesn't have mavlink communication capability. I wonder if…
JieGhost
  • 83
  • 7
2
votes
0 answers

How location.global_relative_frame.alt measure altitude?

I'm working on a Drone project with a Raspberry Pi connected with the Pixhawk4 via MAVLink protocol. I'm trying to understand how the following method is measuring the altitude of the drone: my_drone.location.global_relative_frame.alt Maybe it is…
ljuk
  • 701
  • 3
  • 12
2
votes
3 answers

How can I connecti Raspberry pi 4 to pixhawk?

I want to create a connection between pixhawk and raspberry pi 4 model B. When I connect the Pixhawk to the usb port of raspberry via micro-usb, I can send commands to the pixhawk with the drone-kit scripts on raspberry. However, when I connect…
codcod4
  • 61
  • 1
  • 8
2
votes
1 answer

Dronekit-python running in docker connecting to MAVProxy on host

I am using dronekit-python in a docker container and am attempting to connect to an instance of MAVProxy running on my host machine (Mac OSX) using the following command: vehicle = connect('udp:host.docker.internal:14551', wait_ready=True) but am…
2
votes
1 answer

Can i connect to pixhawk with python?

I want to connect pixhawk without Mission Planner because Mission Planner supported Python 2.7 script but i work on Python 3.7 so can i connect to pixhawk Just Python with telemetry module? OS: Win 10
M. Sahin
  • 35
  • 1
  • 6
2
votes
1 answer

Access my ip wifi camera within OpenCV in ubuntu and wouldn't be connected/streaming

I bought Camera: Eachine E58 RC Quadcopter 0.3MP WIFI FPV and connected it to my smartphone, which works fine with an application called WIFI FPV. I want is to connect my wifi camera to my ubuntu and stream the the video with openCV. I searched for…
Tony.M
  • 23
  • 7
2
votes
2 answers

How to run MQTT client in background in Python?

I'm trying to connect to DroneKit-SITL and keeping an MQTT-Broker running with loop_forever(). Whenever I receive a message over MQTT, I want to send commands to the drone via the dronekit python API. At the same time, I want to send drone data to…
2
votes
2 answers

Python DroneKit - Drone start location

I have been trying out DroneKit Python and have been working with some of the examples provided. Having got to a point of some knowledge of working with DroneKit I have started writing some python code to perform a single mission. My only problem is…
Kapi
  • 49
  • 5
1
2 3
8 9