通过PC获取Tello无人机视频图像和发送控制命令

在这里插入图片描述
一直想使用电脑控制tello无人机飞行,研究了一天,参考了一下其他博主的方法,系统使用的是Windows 10,需要安装的软件列表如下,运行起来以后发现UDP视频流延时至少半分钟,所以不能通过看视频来控制无人机。

项目 链接
FFmpeg https://ffmpeg.zeranoe.com/builds/win64/static/ffmpeg-4.2.3-win64-static.zip
Python https://repo.anaconda.com/archive/Anaconda2-2019.10-Windows-x86_64.exe
Curses https://download.lfd.uci.edu/pythonlibs/w3jqiv8s/cp27/curses-2.2.1+utf8-cp27-cp27m-win_amd64.whl
Github https://codeload.github.com/dji-sdk/Tello-Python/zip/master

启动运行命令如下:

// 发送指令
python tello_text.py commandos.txt
// 无人机实时状态参数
python tello_state.py
// 获取视频流
ffplay -f h264 udp://0.0.0.0:11111

猜你喜欢

转载自blog.csdn.net/otter1010/article/details/106961518