Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 28 04:24
    harshkumarsingh1 opened #1077
  • Oct 27 16:39
    supericeandfire commented #821
  • Oct 27 12:40
    djdylex commented #1034
  • Oct 26 00:00
    djdylex closed #1076
  • Oct 26 00:00
    djdylex commented #1076
  • Oct 23 14:05
    ahmetozkaraca commented #1047
  • Oct 23 00:21
    djdylex edited #1076
  • Oct 23 00:19
    djdylex edited #1076
  • Oct 23 00:19
    djdylex edited #1076
  • Oct 23 00:18
    djdylex edited #1076
  • Oct 23 00:18
    djdylex opened #1076
  • Oct 22 17:46
    HefnySco commented #1044
  • Oct 22 17:39
    djdylex commented #95
  • Oct 22 14:20
    myusf01 commented #1044
  • Oct 21 15:36
    supericeandfire commented #999
  • Oct 21 15:33
    supericeandfire commented #1004
  • Oct 21 15:13
    supericeandfire opened #1075
  • Oct 19 12:32
    msmohanbabu opened #1074
  • Oct 19 11:54
    arthurrichards77 commented #126
  • Oct 17 20:09
    Mytre closed #1073
abachhu
@abachhu
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.
Berke Yavas
@berkeyvx_twitter
How to draw a circle in dronekit guys? Since yaw and yaw_rate not supported in messages, how we can accomplish this
Turbullance
@Turbullance
Hi i have problems regarding importing dronekit to my Raspberry Pi 3... It is connected to the Pixhawk 4
NiharikaPatel
@NiharikaPatel

Hi i'm trying to run a sitl script I get ERROR arming motors and then it takes pff and after a few seconds it says error DISARMING motors. Has anyone come across this. The same script works on another machine. Not sure if its an issue with dronekit or dronekit sitl itself.

'Basic pre-arm checks
Arming motors
Waiting for arming...
Waiting for arming...
Waiting for arming...
ERROR:autopilot:ARMING MOTORS
CRITICAL:autopilot:GROUND START
Waiting for arming...
Waiting for arming...
WARNING:dronekit:Link timeout, no heartbeat in last 5 seconds
CRITICAL:autopilot:Initialising APM...
Taking off!
Altitude: 0.02
Altitude: 0.04
Altitude: 0.06
Altitude: 0.07
Altitude: 0.07
Altitude: 0.07
Altitude: 0.07
Altitude: 0.07
Altitude: 0.07
ERROR:autopilot:DISARMING MOTORS
Altitude: -0.02
Altitude: -0.02
Altitude: -0.02
Altitude: -0.02
Altitude: -0.02
Altitude: -0.02
'

NiharikaPatel
@NiharikaPatel
dronekit-2.9.2 dronekit-sitl-3.3.0 future-0.18.2 lxml-4.5.2 monotonic-1.5 psutil-5.7.2 pymavlink-2.4.11 six-1.15.0
Jawad
@itzmejawad

Hi guys ,

dronekit-sitl Copter

Everytime the simulation initializes with FRAME_CLASS 0 . And I have to manually set the frame class as 1 from Mavproxy.

Is there any way I can make FRAME_CLASS 1 permanently??

STABILIZE> APM: PreArm: Check firmware or FRAME_CLASS

graeme204marble
@graeme204marble
Hi everyone! I'm new to dronekit but have an issue changing mode in one of the tutorials (https://dronekit-python.readthedocs.io/en/latest/examples/simple_goto.html).I launch the SITL copter then the simple_goto.py script, but the drone disarms automatically after take-off (only reaching 0.02 altitude). After checking it seems the copter doesnt seem to switch to "GUIDED" mode. I've tried adding some wait after the "vehicle.mode = VehicleMode("GUIDED")" command but the mode still stays in "STABILISED". Any thoughts? Thanks in advance!
Jawad
@itzmejawad
Hi @graeme204marble ... It seems you're experiencing the same problem of dronekit-SITL as mentioned here dronekit/dronekit-sitl#142 ....Just give a try
graeme204marble
@graeme204marble
thanks @itzmejawad , however I didnt manage to get it to work. I'm on Windows and dont seem to have a /.dronekit/sitl/copter-3.3 folder in my virtual environment (but maybe it's called something else on windows?)
Jawad
@itzmejawad

@graeme204marble In windows there will be executable "apm.exe " file which gets executed when u call dronekit-sitl copter

like /.dronekit/sitl/copter-3.3/apm.exe..

I have no idea how u r going to locate this file in windows and also how ur going to replace it with custom binary :(

Brandon Chung
@bchu1392
Hi guys, I'm quite new to dronekit. I would like to access all the prearm health check on vehicle using python and store them in a database. Is there a list of prearm paramaters for me to check.
supericeandfire
@supericeandfire
my vehicle mode keep in stabilize mode , and i cannot change it in SITL. Does anyone know how to solve it?? Thank you
Muhammed Yusuf
@myusf01
Hello everbody, I was running ArduCopter sitl and dronekit for my project. I could able to send condition yaw and set position target for x,y,z velocities. But when I change to ArduPlane fixed wing these commands are not working any more I'm getting COMMAND_ACK: CONDITION_YAW: UNSUPPORTED for MAV_CMD_CONDITION_YAWmessage and when I try to send set_position_target_local_ned_encodemessage for pitch or else I don't get any error excep COMMAND ACK: DO_CHANGE_SPEED: ACCEPTED for my pre-defined change speed function in this case my speed is not changing. Lookslike everthing is running differen in ArduPlane SITL. Also I was reading dronekit and ardupilot wikis' but I couldn't find commands/messages that sorts my request. What should I do :/
DimaShmu
@DimaShmu
hello everyone, does anyone tried to worked in nonGPS mode, and its worked for him?
Turbullance
@Turbullance
hi when i upload dronekit into my RPi, i receive import dronekit error
DimaShmu
@DimaShmu
did you install the dronekit package properly?
Nobody
@norisg
I have a fundamental issue how flight modes work on dronekit, I am trying to explain my problem a bit:
So checking the MAVLINK doc there exist only MAV_MODE (e.g. MAV_MODE_MANUAL_DISARMED, MAV_MODE_GUIDED_ARMED) and there is no FLIGHT MODE naming in the MAV doc.
Now I am trying to understand how these MAV_MODES correlate to the FLIGHT MODES of PX4 for example, because the I have the following modes according to their website:
Manual-Easy: Position, Altitude, Manual/Stabilized, Orbit
Manual-Acrobatic: Rattitude, Acro
Autonomous: Hold, Return, Mission, Takeoff, Land, Follow Me, Offboard
Nobody
@norisg
I am a bit confused now, because when I try to set the MAV_MODE to MAV_MODE_GUIDED_ARMED via the following commands
COMMAND_LONG {target_system : 0, target_component : 0, command : 176, confirmation : 0, param1 : 216, param2 : 0, param3 : 0, param4 : 0, param5 : 0, param6 : 0, param7 : 0}
a print out of vehicle.mode says I am in VehicleMode:POSCTL
so how does dronekit map the MAV_MODE to PX4 MODES?
Because I want to control the modes my the MAVLink messages
Nobody
@norisg
Does Dronekit support MAV_MODE message in general ?
Nobody
@norisg
any way to reset SITL Battery to 100%
?
ahmetozkaraca
@ahmetozkaraca
Hello Everyone, ı think dronekit have a bug for serial connection. Because sometimes it gives no heartbeat error. I am trying to solve this problem for a week. But I can not solve that problem
Guohao
@Guohao91
@ahmetozkaraca It's caused by the connection between the FC you'r using and the companion computer,
not the dronekit's issue
@norisg Dronekit supports MAV_Mode message
you can change the flight mode during fly
Turbullance
@Turbullance
hello everyone, i am receiving error on my RPi 4 regarding import dronekit error.. Kinde new to the dronekit
Guohao
@Guohao91
@Turbullance you better post out your error screen window