dronekit.APIException: mode (393216, 221) not available on mavlink definition

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?

1 Like