microlinux / tello

A Python interface for the Ryze Tello drone.
171 stars 77 forks source link

RuntimeError('Tello rejected attempt to enter command mode') - CAPS LOCK issue #9

Open LucaBartolini opened 5 years ago

LucaBartolini commented 5 years ago

I bought the Tello, and updated it to the latest firmware: 01.04.78.01 Upon trying to instantiate the object "Tello", the __init__ method would raise a RuntimeError('Tello rejected attempt to enter command mode'). After a little debugging, I figured out that the exception was thrown because the 'OK' expected as a response upon send_command('command') (line 59) was returned in lower caps format, i.e. 'ok'. Possibly this mismatch was due to the latest firmware update, and to have the tello.py library work again, it's simply necessary to change the 'OK' in line 59 to 'ok'.

sglebs commented 4 years ago

This supports either:

        if self.send_command('command').upper() != 'OK':