question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Using dronekit with native SITL on PX4

See original GitHub issue

I’m trying to use Dronekit and interact with native SITL by using the code given here : http://dev.px4.io/dronekit-example.html

However, the connection doesn’t work. It keeps saying and then timeouts :

`>>> Exception in message handler for HEARTBEAT

mode 65536 not available on mavlink definition`

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ndepalcommented, Jun 5, 2016

I am also trying to get DroneKit running with PX4 SITL. Installed the newest DroneKit version, have the newest version of the PX4 Firmware and am following the instructions given in http://dev.px4.io/dronekit-example.html. Like others, I am repeatedly getting the following error message:

>>> Exception in message handler for HEARTBEAT
>>> mode 65536 not available on mavlink definition

Additionally, I occasionally see

>>> FREEFALL DETECTED
>>> LANDING DETECTED
>>> data link #1 lost
>>> data link #1 regained

All of these messages are also visible in the console where I am running the PX4 mainapp. I’m not sure why I’m getting these freefall and landing messages, but that’s a PX4 problem. But at least I see that DroneKit is getting messages from PX4.

What is the status on this issue? It doesn’t look like a lot has happened since it was opened a couple of months ago. Is this being worked on?

DroneKit looks quite interesting, but with the current state it doesn’t look like a usable tool for anybody developing with PX4.

0reactions
IeiuniumLuxcommented, May 2, 2017

I haven’t used dronekit for python. However, dronekit for android works well with SITL on PX4 as shown here.

Read more comments on GitHub >

github_iconTop Results From Across the Web

DroneKit - PX4 User Guide
DroneKit. DroneKit is no longer recommended. You should instead use MAVSDK (opens new window) with PX4, as this is far better in almost ......
Read more >
Setting up a Simulated Vehicle (SITL) - DroneKit-Python
The SITL (Software In The Loop) simulator allows you to create and test DroneKit-Python apps without a real vehicle (and from the comfort...
Read more >
dronekit/dronekit-python - Gitter
My guess would be that you're using native SITL without loading a good parameter file. The approach you're using is correct - you...
Read more >
Setting up ArduPilot SITL Simulator for Testing with MAVProxy ...
I put this tutorial together as I've been experimenting with ArduPilot SITL both with MAVProxy and DroneKit. My hope is that we can...
Read more >
Setting up SITL on Windows — Dev documentation - ArduPilot
It can also be run on a virtual machine (Linux) hosted on Windows, Mac OSX, or Linux or by using the Windows Subsystem...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found