robagar / tello-asyncio

A library for controlling and interacting with the Tello EDU drone using modern asynchronous Python.
GNU Lesser General Public License v2.1
25 stars 5 forks source link

on 'stop' function call drone aborts instead of interrupting movement and hover #13

Closed lifeisgood-ai closed 1 year ago

lifeisgood-ai commented 2 years ago

Hi

I want to interrupt a drone move using the 'stop' command ( await tello.stop() ) but it raises an error instead of "Stop moving and hover immediately." as the Tello SDK suggests.

I tried a quick fix modifying line 73 of main/tello_asyncio/tello.py from:

                if message == 'ok':

to:

                if message == 'ok' or message == 'forced stop':

It is not fully working and I am not sure it complies with the rest of the code

robagar commented 1 year ago

finally fixed in 2.1.3