Macbookへのインストールと動作確認で、成功しました。
インストール対象
環境構築
Terminal
electron@diynoMacBook-Pro Desktop % pip3 install djitellopy
動作確認(成功)
Terminal
electron@diynoMacBook-Pro Desktop % python3
Python 3.9.6 (default, Jun 29 2021, 06:20:32)
[Clang 12.0.0 (clang-1200.0.32.29)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from djitellopy import Tello
>>> tello = Tello()
[INFO] tello.py - 107 - Tello instance was initialized. Host: '192.168.10.1'. Port: '8889'.
>>>
>>> tello.connect()
[INFO] tello.py - 422 - Send command: 'command'
[ERROR] tello.py - 442 - 'utf-8' codec can't decode byte 0xcc in position 0: invalid continuation byte
[INFO] tello.py - 422 - Send command: 'command'
[INFO] tello.py - 446 - Response command: 'ok'
>>>
>>> tello.takeoff()
[INFO] tello.py - 422 - Send command: 'takeoff'
[INFO] tello.py - 446 - Response takeoff: 'ok'
>>> tello.move_left(10)
[INFO] tello.py - 422 - Send command: 'left 10'
[INFO] tello.py - 446 - Response left 10: 'ok'
>>>
>>> tello.move_left(20)
[INFO] tello.py - 422 - Send command: 'left 20'
[INFO] tello.py - 446 - Response left 20: 'out of range'
[INFO] tello.py - 422 - Send command: 'left 20'
[INFO] tello.py - 446 - Response left 20: 'ok'
>>>
>>> tello.rotate_counter_clockwise(90)
[INFO] tello.py - 422 - Send command: 'ccw 90'
[INFO] tello.py - 446 - Response ccw 90: 'ok'
>>>
>>> tello.move_forward(20)
[INFO] tello.py - 422 - Send command: 'forward 20'
[INFO] tello.py - 446 - Response forward 20: 'ok'
>>>
>>>
>>> tello.land()
[INFO] tello.py - 422 - Send command: 'land'
[INFO] tello.py - 446 - Response land: 'ok'
>>> quit()
electrom@diyinoMacBook-Pro Desktop %