Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
  • Jan 18 15:59
    032921165 edited #1089
  • Jan 18 15:58
    032921165 commented #1089
  • Jan 18 15:55
    032921165 opened #1089
  • Jan 16 16:46
    danammeansbear closed #1087
  • Jan 16 16:46
    danammeansbear commented #1087
  • Jan 16 16:45
    danammeansbear opened #1088
  • Jan 16 16:44
    danammeansbear commented #1083
  • Jan 16 15:33
    Nilasstohr commented #1083
  • Jan 15 21:14
    danammeansbear commented #1066
  • Jan 15 21:03
    danammeansbear commented #1087
  • Jan 15 21:02
    danammeansbear opened #1087
  • Jan 15 20:53
    danammeansbear commented #1083
  • Jan 14 03:45
    danammeansbear commented #1041
  • Jan 14 02:52
    danammeansbear commented #1041
  • Jan 13 19:53
    asosa16 commented #1058
  • Jan 13 09:56
    eminakgun commented #1084
  • Jan 13 06:46
    Jovian-Dsouza commented #150
  • Jan 13 06:45
    Jovian-Dsouza commented #150
  • Jan 09 22:20
    walchko commented #1041
  • Jan 09 02:31
    walchko commented #150
hi everyone, what is the code for me to install dronekit which works with python 3? most forums states that i have to install thru the github repository to get the latest dronekit.
I think you should properly install python3 lib ahead
Question :
My mission is to make my drone fly without GPS, i thought to connect optical flow to the drone, which i believe help the drone to save its position(even if there is wind).
So my Question is - is it really going to help me to save position? or i have to add something else?

@Guohao91 I received this two errors:

1) pi@raspberrypi:~ $ dronekit-sitl copter
os: linux, apm: copter, release: stable
SITL already Downloaded and Extracted.
Ready to boot.
Traceback (most recent call last):
File "/home/pi/.local/bin/dronekit-sitl", line 8, in <module>
File "/home/pi/.local/lib/python3.7/site-packages/dronekit_sitl/init.py", line 601, in main
sitl.launch(args, verbose=True)
File "/home/pi/.local/lib/python3.7/site-packages/dronekit_sitl/init.py", line 251, in launch
caps = ArdupilotCapabilities(self.path)
File "/home/pi/.local/lib/python3.7/site-packages/dronekit_sitl/init.py", line 160, in init
process = subprocess.Popen([path, '--help'], stdout=subprocess.PIPE)
File "/usr/lib/python3.7/subprocess.py", line 775, in init
restore_signals, start_new_session)
File "/usr/lib/python3.7/subprocess.py", line 1522, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 8] Exec format error: '/home/pi/.dronekit/sitl/copter-3.3/apm'

2) pi@raspberrypi:~ $ python hello.py
Start simulator (SITL)
Traceback (most recent call last):
File "hello.py", line 2, in <module>
import dronekit_sitl
ImportError: No module named dronekit_sitl


Is there anyway to download data flash logs(.bin) using dronekit?
i tried MAV_CMD_LOGGING, but no success.

The following command is working for me but I would like to download using dronekit
mavproxy.py --master tcp: --cmd="log list" --cmd="log download all"

Huibean Luo
does anyone know why the lat and lon value is changed after commands.upload()?
@Turbullance I believe that's an issue caused by your python version
I ever used 2.8 and 3.2(i am exactly sure the version NO.)
but certainly if your python version is too high to compatible with dronekit
the console will come out some import or format errors
hi everyone.. I am running a python program in a companion processor connected pixhawk cube over USB. in the program, there are few active listeners for few parameters and depending upon any change in parameters, I have defined corresponding callback functions.
But the problem is, when in the callback function, I am trying to set value of a parameter like
I am getting "error timeout setting parameter PARAM1 to 1.0", although that parameter is being set to 1.0. And in some cases, it is giving rise to "CPU load reaching 100% " in pixhawk cube 2.1.
Any solution to resolve this?
@PaulCampredon Did you find answer
Hey everybody, I am looking to read RC rssi via dronekit. How can I do that
hello everyone, im doing simulation work with SITL and was wondering if there is anyway to add differential GPS to Copter3.3 or generally increase my positional accuracy. Currently I have the drone flying through a series of transversal/snake-pattern waypoints at 1 m/s and I am using the default Copter3.3 configuration file. When plotting the position of the drone against the waypoints, the position is very wavy and not a straight line.

@Turbullance I believe that's an issue caused by your python version

so i have to install the compatible python on to my raspberry pi?

of course
python version must be compatible with dronekit stream
Hello, trying to get Python code on Raspberry Pi to connect to Mavlink on the same Raspberry Pi running ArduPilot. I can connect from another PC using connection the_connection = mavutil.mavlink_connection('udp:') So I know it works. When I try and connect from the same code on the Raspberry Pi with connection string the_connection = mavutil.mavlink_connection('udp:') it does not connect. The setup of the Ardupilot, I have TELEM1="-A udp:"
TELEM2="-A udp:". I am assming this is do-able and it is just me! Any ideas?
Hello eveyone, I want to control elevator in fixed wing. Can I use dronekit and how?
Hey all, i am trying to fly in nonGPS mode(its works fine) but when there is WIND, the problems begin. Is there any way to calculate the WIND strength and direction?
@DimaShmu I am working on the Non_GPS mode too.
@DimaShmu what problem do you have when winds flow round
@Guohao91 it has a strong drift, and i am wondering how to solve it
Ronald Pandolfi
It has been some time since several users reported on dronekit support for Python 3. Has someone pulled this together in a convenient guide?

Hi there. I'm trying to connect dronekit to my 3dr solo. It's worked fine before with a small nanoPI payload computer over UDP using python 2.7. Now I'm trying to connect a Jetson Nano computer with the same 3dr solo using udp and python 3. I get connected, but just after connecting the console reads:

CRITICAL:Autopilot:APM:Copter solo-1.3.1
CRITICAL:autopilot:PX4: 5e693274 Nuttx: d48fa307
I have 3D GPS lock and the vehicle reports that it's armable and in Standby-mode.
I flies fine using the remote control, but I cannot get my python script to change vehicle mode to guided or anything else.
I suspect it's because of the CRITICAL statement, but I cant see what should be wrong or critical. QgroundControl reports no errors as well, so it seems to be related to dronekit.

Screen Shot 2020-11-20 at 12.03.25.png
Kyle Jackson
Has anyone been able to connect to a px4 or similar with dronekit from a docker container?
Please explain this
Arming checks disabled. got command_ack:nav_takeoff :failed
APM: disarming motors
Michael Mak
Your takeoff command failed and since your drone is on land for a certain period time hence disarming your motors
gotta check why you are failing takeoff
and disable arming checks is not exactly the best thing to do either
Hi there, I am trying to monitor all main and aux outputs... I can easily read main outputs using a message listener and the servoX_raw message. It appears I have to switch ports in order to read the aux outputs, but I am having issues with this. Could someone assist?
@wrmichaelmak I was using one port for the local host to connect both mission planner and run script....I used seperate ports with another for sitl and it worked
Hello there, just a quick question about using dronekit from multiple threads using the same connection. Is this generally possible? Or something which should be avoided? I would like to seperate logging and controlling threads.
Hey all - I am wondering why the no one works on the dronekit project? (no one updated it since 2016?)
Hello there ı want to know at what hz can ı send channel.override? Do anybody know that?
Hi, let's say; a drone has lost its connection and I cannot control it via gnu. How can I send another drone near the disconnected drone and use the telemetry of the drone I sent with the intention of a bridge network and re-establish the communication between the disconnected drone's telemetry and my computer. by using dronekit-sitl mission planner.
Mohamed Elwakil
What drones do support DroneKit? Does Ryze Tech Tello support DroneKit?
python3 and dronekit . Is it every going to happen? I mean really with Covid 19 and everyone home what else is there to do :) :)
find a peaceful place to try your work
Hello, to run dronekit with pixhawk, do I need a raspberry pi?
yes you may use Raspberry
Pi 3 or a NUC, any compatible companion computer
Which cases would you say its better to use scripting than mission planner mission commands?