dronekit / dronekit-python

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

Excception in message for Heartbeat each time i connect the Gimal #985

Open JorgeCosta87 opened 4 years ago

JorgeCosta87 commented 4 years ago

Hello, I'm having an error each time i connect the gimbal (STorM32), to the pixhawk :

raise APIException: mode (6, 0) not available on mavlink definition ERROR:dronekit:Exception in message handler for HEARTBEAT

raise APIException("mode (%s, %s) not available on mavlink definition" % (m.custom_mode, m.base_mode)) APIException: mode (6, 0) not available on mavlink definition CRITICAL:autopilot:STorM32 v0.96 v1.30 F103RC CRITICAL:autopilot:OlliW 323BGC

anyone knows how to solve this ?

Guohao91 commented 4 years ago

same problem

kiranshila commented 4 years ago

It sure does seem like this project was abandoned. The last update to master was in November and I submitted the PR to fix this issue back then. Who knows what's happening.

bobn3 commented 4 years ago

Hi, I'm having this same problem. Pixhawk 2.1 with Storm32 gimbal, using latest dronekit and ardupilot versions, followed the steps here and verified that the gimbal does respond to RC's ch7 and moves accordingly, however, when trying it out with python it doesn't move (it does read the gimbal position correctly though), and it raises this exception:

**raise APIException("mode (%s, %s) not available on mavlink definition" % (m.custom_mode, m.base_mode))

dronekit.APIException: mode (6, 128) not available on mavlink definition**