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

ERROR:autopilot:ARMING MOTORS #1066

Open atomattias opened 3 years ago

atomattias commented 3 years ago

Help me out, I am new to Dronekit-python, My goal is to use dronekit python on sitl. My system is ubuntu 18.04 I am running $dronekit-sitl copter in one terminal and tried to connect with it from another. I test it with the sample script. _$python simplegoto.py But it looks like it is not changing mode and is failed as it tried to arm the motor.

![Uploading drone.png…]() drone

sakaryag commented 3 years ago

Did you solve this problem? I am taking this error too.

loicspace commented 3 years ago

Same issue for me, for this script specifically and my own, which all run successfully on an older install.

xbalaguer commented 3 years ago

Same error... when trying to takeoff the SITL, is not gaining altitude due to the same problem. It was working before the last update.

DavidM-GitHub commented 3 years ago

For me this was caused by the vehicle state not changing to guided mode. I reinstalled an older version of mavlink as per this comment https://github.com/dronekit/dronekit-python/issues/1041#issuecomment-660750737. This solved the problem for me

danammeansbear commented 3 years ago

This problem has persisted but when I downgrade, it produces a haystack of a mess

habibmuhammadthariq commented 3 years ago

For me this was caused by the vehicle state not changing to guided mode. I reinstalled an older version of mavlink as per this comment #1041 (comment). This solved the problem for me

thanks @DavidM-GitHub , this work for me

swere10 commented 8 months ago

Hello is there anyone with a solution to this problem at least telling us the exact version to run the scripts with