dronekit / dronekit-python

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

APIException: mode (393216, 221) not available on mavlink definition #1120

Open brightchiu opened 3 years ago

brightchiu commented 3 years ago

Hello all, I'm running dronekit 2.9.2 on companion computer to communicate Holybro Durandal, the firmware is PX4 1.12.0beta. The problem happened when I engaged the offboard mode, the console show the exception message below:

dronekit.APIException: mode (393216, 221) not available on mavlink definition ERROR:dronekit:Exception in message handler for HEARTBEAT

It seems like receiving the wrong mode number, and it only happened after switching to offboard mode. I do the double check in the PyCharm IDE environment. Although it wouldn’t kill the whole process but this error still exists. Dose anyone know why this happen or how to fix it?

lukec1997 commented 2 years ago

Hi, I'm having the exact same problem, did you manage to fix this?