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
29 stars 6 forks source link

Wifi handling needs fix for Tello TT and Open Source module #6

Closed jsolderitsch closed 3 years ago

jsolderitsch commented 3 years ago

In types.py there are lines:

class ControllerHardware(Enum):
    TELLO = 'TELLO'
    OPEN_SOURCE = 'RMTT'

In fact if you connect the new Open Source Module to the Tello, the default wifi prefix starts with RMTT.

But the wifi startup logic breaks because there is a hardcoded string in tello.py:

    _wifi_ssid_prefix = 'TELLO'

There needs to be some way to allow the ssid prefix begin with either TELLO or RMTT.

Not sure what the best way to achieve this might be.

Since the Mac platform does not implement the wait for function, then the code examples works even with the new Wifi access point name pattern.