Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 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
Turbullance
@Turbullance
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.
Guohao
@Guohao91
I think you should properly install python3 lib ahead
DimaShmu
@DimaShmu
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?
Turbullance
@Turbullance

@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>
sys.exit(main())
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

Jawad
@itzmejawad

@peterbarker
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:0.0.0.0:5760 --cmd="log list" --cmd="log download all"

Huibean Luo
@Huibean
does anyone know why the lat and lon value is changed after commands.upload()?
Guohao
@Guohao91
@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.)
Guohao
@Guohao91
but certainly if your python version is too high to compatible with dronekit
the console will come out some import or format errors
rockstar221123
@rockstar221123
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
vehicle.parameters["param1"]=1.0,
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?
kartoshkaj
@kartoshkaj
@PaulCampredon Did you find answer
kartoshkaj
@kartoshkaj
Hey everybody, I am looking to read RC rssi via dronekit. How can I do that
wlynch1
@wlynch1
pre_tier2_plot.png
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
@Turbullance

@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?

Guohao
@Guohao91
of course
python version must be compatible with dronekit stream
raspberryfone
@raspberryfone
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:192.168.178.25:14550') 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:127.0.0.1:14540') it does not connect. The setup of the Ardupilot, I have TELEM1="-A udp:192.168.178.25:14550"
TELEM2="-A udp:127.0.0.1:14540". I am assming this is do-able and it is just me! Any ideas?
Ekarat
@ekaratst
Hello eveyone, I want to control elevator in fixed wing. Can I use dronekit and how?
DimaShmu
@DimaShmu
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?
Guohao
@Guohao91
@DimaShmu I am working on the Non_GPS mode too.
Lol
@DimaShmu what problem do you have when winds flow round
Guohao
@Guohao91
 n
DimaShmu
@DimaShmu
@Guohao91 it has a strong drift, and i am wondering how to solve it
Ronald Pandolfi
@rspandolfi_gitlab
It has been some time since several users reported on dronekit support for Python 3. Has someone pulled this together in a convenient guide?
JesperA75
@JesperA75

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
etc...
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
@KJackson91
Has anyone been able to connect to a px4 or similar with dronekit from a docker container?
prajesh-pixel
@prajesh-pixel
Please explain this
Arming checks disabled. got command_ack:nav_takeoff :failed
APM: disarming motors
Michael Mak
@wrmichaelmak
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
JarrydSteele
@JarrydSteele
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?
prajesh-pixel
@prajesh-pixel
@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
OSHW-Rico
@OSHW-Rico
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.
DimaShmu
@DimaShmu
Hey all - I am wondering why the no one works on the dronekit project? (no one updated it since 2016?)
ahmetozkaraca
@ahmetozkaraca
Hello there ı want to know at what hz can ı send channel.override? Do anybody know that?
Osman
@OsmanAvcci_twitter
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
@mohamed-elwakil
What drones do support DroneKit? Does Ryze Tech Tello support DroneKit?
Montanadude
@Montanadude
python3 and dronekit . Is it every going to happen? I mean really with Covid 19 and everyone home what else is there to do :) :)
Guohao
@Guohao91
hahahah
find a peaceful place to try your work
GRS26
@GRS26
Hello, to run dronekit with pixhawk, do I need a raspberry pi?
Guohao
@Guohao91
yes you may use Raspberry
Pi 3 or a NUC, any compatible companion computer
GRS26
@GRS26
Which cases would you say its better to use scripting than mission planner mission commands?