by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 16:47
    EmirhanKarahan opened #1070
  • 13:25
    4NTH3L1OS commented #1069
  • 12:50
    prashanthravi19 opened #1069
  • 12:19
    sakaryag commented #1066
  • Sep 25 05:21
    Benix6 edited #1068
  • Sep 25 05:20
    Benix6 opened #1068
  • Sep 24 08:44
    darpant-289 closed #1067
  • Sep 24 05:46
    darpant-289 opened #1067
  • Sep 23 13:28
    atomattias edited #148
  • Sep 23 13:28
    atomattias opened #148
  • Sep 23 11:19
    atomattias edited #1066
  • Sep 23 05:27
    atomattias opened #1066
  • Sep 21 14:13
    mustafa-gokce opened #1065
  • Sep 18 14:10
    FedePeralta closed #1045
  • Sep 18 14:10
    FedePeralta commented #1045
  • Sep 17 07:22
    rajivrawat982 commented #685
  • Sep 17 07:20
    rajivrawat982 commented #685
  • Sep 16 13:49
    shacharp edited #1064
  • Sep 16 13:49
    shacharp opened #1064
  • Sep 16 09:45
    rekhyzakaria55 opened #1063
huserkmen
@huserkmen
Hello everyone been tryin to connect Rpi 3 b+ to my pixhawk 2.4.8 via dronekit for some scripting but stuck at below error message anyone can help me out to fix this issue thx !
Yusuf U├žan
@UcannYusuf_twitter
Hello, want to create a connection between pixhawk and raspberry pi 4 model B. I explained my problem on stackoverflow. Can someone help me please?
Richard Abrich
@abrichr
Hello everyone! Is there a list of hardware devices that dronekit currently supports?
richahert
@richahert
Hi! I want to steer a pixhawk with cube through DroneKit on a Raspberry Pi. Why is it recommended to connect a Pi via Telem2 and not USB?
smiQi
@smiQi
Hi, i connected my Pi4 to my APM via MicroUsb. Everything works fine but a simple script takes like 15 seconds to finish? Can i do something so i make things faster? Thanks you already.
baris-ekici
@baris-ekici
It seems dronekit development stopped, MAVSDK leading similar role, but limited support for ardupilot.
Ram D Gadekar
@RamDG
Hi i am using dronekit with px4v1.11.0
when i am running the script to get the attitude and velocity data
i m getting Velocity: [None, None, None]. i am not able to get the numbers
may be i am missing something .... someone pls help me out
Screenshot from 2020-09-04 17-04-38.png
Guohao
@Guohao91
@RamDG as long as you use vehicle.groundspeed as your original observe source, it should be fine
or vehicle.airspeed as well
Ram D Gadekar
@RamDG
This message was deleted
@Guohao91 Thanks for the reply.... I am expecting Vx Vy Vz from local_positionned ..........as the same i m reciving in QGC (Pls see the attached image). I am receiving the same when i am using ardupilot (by running "vehicle.velocity" ) but through px4 ...alt and velocity both are always None.. ned.png Any help would be appreciated
Ahmed Said Ersoy
@AhmedSaidErsoy_twitter
Hi, we are trying to do image processing with raspberry and control the plane while auto mode by raspberry via mavlink. But we have some serial issues. Did anyone do that before? Is there anything that we can look?
abachhu
@abachhu
Hi guys, I am working with a Rpi4 and a Navio2 for a copter build. When i run my code I get - WARNING: dronekit: Link timeout, no heartbeat in last 5 seconds. Does anyone know how to solve that error?
Ram D Gadekar
@RamDG
@abachhu try setting wait_ready=False
Guohao
@Guohao91
@RamDG so you are using PX4
I don't think dronekit python can be compatible with PX4
you'd better apply ardupilot as your firmware in here
abachhu
@abachhu
image.png
@RamDG The error doesn't go away. Do you have any other suggestions? When I run the script it looks like
When I run it without specifying udp I get a different result
image.png
Any ideas?
DoneMan
@DoneMan
Can anyone please tell me the line of code i need to write to use the MAV_CMD_MISSION_START
John Vernon
@johnv757_twitter
image.png
Hool all - I have a working solution using latest stable ardupilot 4.0.3 in sitl, but when I try the connection to the real drone I'm getting this error: dronekit.APIException: mode (0, 4) not available on mavlink definition. It looks like this is related to this message, but I don't really see what's wrong with it.
John Vernon
@johnv757_twitter
I'm having a similar issue as dronekit/dronekit-python#677 however, the solution seems really out of date and I can't seem to piece it together with the current version of dronekit and pymavlink.
The log entries look the same as is referenced in this issue though:
2020-09-10 19:48:14.16: HEARTBEAT {type : 27, autopilot : 8, base_mode : 4, custom_mode : 0, system_status : 1, mavlink_version : 3} srcSystem=1 srcComponent=156 2020-09-10 19:48:14.42: HEARTBEAT {type : 27, autopilot : 8, base_mode : 4, custom_mode : 0, system_status : 1, mavlink_version : 3} srcSystem=1 srcComponent=156 2020-09-10 19:48:15.10: HEARTBEAT {type : 6, autopilot : 8, base_mode : 0, custom_mode : 0, system_status : 0, mavlink_version : 3} srcSystem=255 srcComponent=0 2020-09-10 19:48:15.17: HEARTBEAT {type : 27, autopilot : 8, base_mode : 4, custom_mode : 0, system_status : 1, mavlink_version : 3} srcSystem=1 srcComponent=156 2020-09-10 19:48:15.42: HEARTBEAT {type : 27, autopilot : 8, base_mode : 4, custom_mode : 0, system_status : 1, mavlink_version : 3} srcSystem=1 srcComponent=156 2020-09-10 19:48:15.43: HEARTBEAT {type : 27, autopilot : 8, base_mode : 4, custom_mode : 0, system_status : 1, mavlink_version : 3} srcSystem=1 srcComponent=156 2020-09-10 19:48:16.10: HEARTBEAT {type : 6, autopilot : 8, base_mode : 0, custom_mode : 0, system_status : 0, mavlink_version : 3} srcSystem=255 srcComponent=0
abachhu
@abachhu
@johnv757_twitter I had the same error, and then I used the solution stated on the page that you linked. pip unistall pymavlink (multiple times)
pip unistall dronekit (multiple times)
cd ~
git clone https://github.com/dronekit/dronekit-python.git
cd ./dronekit-python
sudo python setup.py build
sudo python setup.py install
I ran that and then ran into the error in my image
John Vernon
@johnv757_twitter
@abachhu ok, thanks. I'm giving that a try now
abachhu
@abachhu
I am not sure how to proceed from the error I have now tho
John Vernon
@johnv757_twitter
I'll let you know if I have the same problem or find a solution to it
John Vernon
@johnv757_twitter
Just updating in case anyone else runs into this problem: In my case, it was that the heartbeat was coming from the ADSB. I didn't have to build from sources, I just had to set the ADSB serial interface protocol from Mavlink1 to None. While this disables ADSB for me, it will work for now.
abachhu
@abachhu
@johnv757_twitter where can I find the Mavlink1 command to change it to none and try?
1 reply
egradman
@egradman
Howdy. I can successfully connect DroneKit to SITL and to a Matek wing (by increasing the connect timeout.) Yay! However, I'm currently experimenting with the SITL and I'm getting "Mission upload timeout" when uploading mission commands over a TCP connection. Any ideas? I can't even find "Mission upload timeout" in the DroneKit codebase!
It doesn't fail all the time. Just almost all the time.
egradman
@egradman
It succeeds when I upload (home_waypoint, takeoff, wp_0) but fails with a mission upload timeout when I try to add any more waypoints to the upload. In the success case, the plane takes off, reaches altitude, and immediately RTLs without flying to wp_0. But that's a different problem I suppose.
Howie9600
@Howie9600
i am having an issues with rc overides
i try to set then read and value is none
Howie9600
@Howie9600
anyone else had this issue
ddomit
@ddomit
Has anyone been able to use AIRSIM with Dronekit?

@Jack-2025 we have a GSoC student (@rajat2004) adding a backend right now for AirSim. It's over here: ArduPilot/ardupilot#11367 . Note that the current protocol over there isn't what we're going to use eventually - we're looking at moving t o something more flexible (probably JSON-based).

Were you able to use dronekit with AIRSIM?

Can anyone tell me how to use dronekit with airsim simulator

Were you able to use dronekit with AIRSIM?

Rajat Singhal
@rajat2004
@ddomit AirSim works like a Physics backend to ArduPilot, so you can use dronekit like used normally with SITL
Justin A
@justin5927
Hello does anyone have any idea how to send specific PWM signals to an individual motor or motors at a time. For example have one motor go at like 40% throttle and then two motors go at 10% throttle at the same time. If possibly have a motor/motors ramp up slowly so like go from like 0% throttle to 50% throttle slowly.
jinkalr-itpath
@jinkalr-itpath
Hello All
I wanted to use python API for connecting drone and getting current location of drone. SO can anyone please guide me how I can do it?
As I am having DJI Mavlink drone, which connects with WiFi.
So please help me for this, its really appreciated
darpant-289
@darpant-289
helllo i am facing this issue can u please help me:WARNING:dronekit:Link timeout, no heartbeat in last 5 seconds
ERROR:dronekit.mavlink:Exception in MAVLink input loop
Traceback (most recent call last):
File "/home/ips/drone/venv/local/lib/python2.7/site-packages/dronekit/mavlink.py", line 211, in mavlink_thread_in
fn(self)
File "/home/ips/drone/venv/local/lib/python2.7/site-packages/dronekit/init.py", line 1371, in listener
self._heartbeat_error)
APIException: No heartbeat in 30 seconds, aborting.
Traceback (most recent call last):
File "d1.py", line 16, in <module>
vehicle = connectMyCopter()
File "d1.py", line 13, in connectMyCopter
vehicle = connect(connection_string, wait_ready=True)
File "/home/ips/drone/venv/local/lib/python2.7/site-packages/dronekit/init.py", line 3166, in connect
vehicle.initialize(rate=rate, heartbeat_timeout=heartbeat_timeout)
File "/home/ips/drone/venv/local/lib/python2.7/site-packages/dronekit/init.py", line 2275, in initialize
raise APIException('Timeout in initializing connection.')
dronekit.APIException: Timeout in initializing connection.