带Python的Tello Edu无人机

2024-04-29 00:43:41 发布

您现在位置:Python中文网/ 问答频道 /正文

我使用的代码来自“https://github.com/dji-sdk/Tello-Python”,我可以用我的手机,但不是在我的个人电脑上,我可以得到一个实时的视频。按照指南和提取文件后,我得到的只是错误

import tello

from tello_control_ui import TelloUI

def main():
    drone = tello.Tello('', 8889)
    vplayer = TelloUI(drone, "./img/")

    # start the Tkinter mainloop
    vplayer.root.mainloop()


if __name__ == "__main__":
    main()

我得到的错误是:No Module named Tello.


Tags: 代码httpsimportgithubcommain错误sdk