dronekit / dronekit-python

DroneKit-Python library for communicating with Drones via MAVLink.
https://readthedocs.org/projects/dronekit-python/
Apache License 2.0
1.56k stars 1.43k forks source link

simple goto example of dronekit-python with ArduSub v3.5.3 gives me error of mode 19 not available #887

Closed marmik18 closed 3 years ago

marmik18 commented 5 years ago

I have connected Pixhawk directly to my linux computer over usb and the serial port is /dev/ttyACM0 When i run the code as python simplegoto.py --connect /dev/ttyACM0

dronekit detects the firmware as ArduSub but fails to detect heartbeat.

Connecting to vehicle on: /dev/ttyACM0 Exception in message handler for HEARTBEAT mode 19 not available on mavlink definition MYGCS: 255, heartbeat lost Exception in message handler for HEARTBEAT mode 19 not available on mavlink definition ArduSub V3.5.3 (ad81760b) PX4: 8d505a02 NuttX: 1a99ba58 PX4v2 00350045 33375111 31313639 Exception in message handler for HEARTBEAT mode 19 not available on mavlink definition Exception in message handler for HEARTBEAT mode 19 not available on mavlink definition Exception in message handler for HEARTBEAT mode 19 not available on mavlink definition Exception in message handler for HEARTBEAT mode 19 not available on mavlink definition Exception in message handler for HEARTBEAT mode 19 not available on mavlink definition

Can anyone help me out with this is issue? Thank you in advance.

jmachuca77 commented 5 years ago

Reinstall dronekit from the github repository instead of using pip, look at #677

Sent from my iPad

On Dec 13, 2018, at 9:52 PM, Marmik Thakkar notifications@github.com wrote:

I have connected Pixhawk directly to my linux computer overr sub and the serial port is /dev/ttyACM0 When i run the code as python simplegoto.py --connect /dev/ttyACM0

dronekit detects the firmware as ArduSub but fails to detect heartbeat. `$ python hello.py --connect /dev/ttyACM0 Connecting to vehicle on: /dev/ttyACM0

Exception in message handler for HEARTBEAT mode 19 not available on mavlink definition MYGCS: 255, heartbeat lost Exception in message handler for HEARTBEAT mode 19 not available on mavlink definition ArduSub V3.5.3 (ad81760b) PX4: 8d505a02 NuttX: 1a99ba58 PX4v2 00350045 33375111 31313639 Exception in message handler for HEARTBEAT mode 19 not available on mavlink definition Exception in message handler for HEARTBEAT mode 19 not available on mavlink definition Exception in message handler for HEARTBEAT mode 19 not available on mavlink definition Exception in message handler for HEARTBEAT mode 19 not available on mavlink definition Exception in message handler for HEARTBEAT mode 19 not available on mavlink definition ` Can anyone help me out with this is issue? Thank you in advance.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

marmik18 commented 5 years ago

I got it solved, i updated pymavlink to 2.3 from 2.0 which was actually supported by dronekit