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

Dronekit Python didn't go to specific location

I have problem about Dronekit on Python My project about receive GPS Location from Android application and Launch drone flying to that Position, Everything work fine but problem is Drone can takeoff but drone didn't go to that Location(Testing 10+…
0
votes
1 answer

How to get Waypoints information from Pixhawk and send it to Raspberry while the mission is uploaded through mission planner?

I am working on a project using a fixed wings UAV. I want to perform RC override when UAV reaches certain waypoints. I have defined the waypoints and uploaded the mission to Pixhawk using Misison Planner I have a 4G module connected to Raspberry Pi…
0
votes
1 answer

Creating a subclass without direct access to the parent class __init__() function

I'm using the DroneKit API in Python for controlling a drone using a companion computer. I'm trying to create a class, Vehicle, which inherits from the Vehicle class in DroneKit. The purpose of this class is for me to override some methods present…
0
votes
1 answer

Connect to Vehicle Using Telemetry on Linux

I am having problems with connection to vehicle. First, I could not connect to the vehicle even with USB (I used "/dev/ttyUSB0" connection string and got an error). Later I got it working with connection string…
FalseScience
  • 197
  • 2
  • 17
0
votes
1 answer

GPS fix_type Value = 4

After looking through the logs of a recent test flight my craft reported a value of 4 for the variable fix_type of class dronekit.GPSInfo(eph, epv, fix_type, satellites_visible). eph and epv had no value and satellites_visible varied between 9 and…
Rudy
  • 3
  • 2
0
votes
1 answer

Does anything else other than dronekit and dronekit stil need to be installed to run the hello.py program on the Quick Start page?

I followed the instructions on this page: http://python.dronekit.io/guide/quick_start.html What I've Done: pip install dronekit pip install dronekit-sitl Then I created a python file with this in it: print ("Start simulator (SITL)") import…
mahdi
  • 1
  • 2
0
votes
4 answers

simulating two arducopter in with single mavproxy

I have tried to create multiple instance of mav proxy but i have no idea about this. My question is about how to load two arducopter in single map in sitl. I am learning sitl setup and i want to know is it possible to load two arducopter in one…
himani
  • 1
  • 3
0
votes
1 answer

Get drone flying state vi Drone kit

Is there a way to get the flying state of the drone using dronekit ? and by flying state I mean: Landed, Taking off, hovering, flying, landing
HAOUAS Khaled
  • 40
  • 1
  • 6
0
votes
0 answers

dronekit python vehicle timeout

after running vehicle_state.py example, it shows an error like below. Traceback (most recent call last): File "C:\Users\CVLAB\Downloads\dronekit-python-master\dronekit-python-master\examples\vehicle_state\test.py", line 5, in print…
Varun Vh
  • 1
  • 1
0
votes
1 answer

Build Target for dronekit-sitl

How do you build Copter firmware for dronekit-sitl? I can do either make px4-v2 or make sitl but neither seems right. The latest firmware dronekit sitl offers is 3.3 and I would like to try out 3.4 (and eventually make some of my own changes and…
schrödinbug
  • 692
  • 9
  • 19
0
votes
1 answer

Cumulative error between SYSTEM_TIME and companion computer time in Dronekit

similar to this guy, I have been trying to get GPS time from a Pixhawk into a Raspberry Pi companion computer. Before trying out the @vehicle.on_message('SYSTEM_TIME') approach, I used a wildcard to catch all messages and dumped the results into a…
armadillo
  • 3
  • 3
0
votes
3 answers

How to do «go to left/right/forward/backward» with python dronekit?

I am using APM for autopiloting my hexacopter and following this tutorial. by looking at this available commands, I cannot see how one can command the drone to go to left/right/forward/backward? Can anybody help me on this?
dariush
  • 3,191
  • 3
  • 24
  • 43
0
votes
2 answers

Dronekit python vehicle connect timeout

I am trying to run a helloworld.py using dronekit on my solo drone. My environment is dronekit==2.7.0 pymavlink>=2.0.0 When I try to run the simple helloworld example the vehicle.connect() timesout. ERROR LOADING MAVNATIVE - falling back to python…
Jerome Anthony
  • 7,823
  • 2
  • 40
  • 31
0
votes
2 answers

RPi2 UART Setup & Operation Issues

I'm currently busy with my masters project which involves setting up comms on UART between a Raspberry Pi Model 2 B V1.1 and a Pixhawk Flight Controller using Mavlink protocol. The first step is, of course, to get the UART set up and working. I'm…
0
votes
2 answers

DroneKit - setting RTL altitude

I want my copter to return to launch on specific altitude, for now I am running everything on ArduPilot SITL. First I have tried to use simple_goto() vehicle.commands.download() vehicle.commands.wait_ready() finish_location =…
Michal
  • 1
  • 1
1 2 3
8 9