没有从Tello错误收到州数据包
在试图在Anaconda环境中执行以下代码时,我面临的“未从Tello”错误接收到状态数据包。有人可以帮忙吗?
from djitellopy import tello
from time import sleep
me = tello.Tello()
me.connect()
print(me.get_battery())
me.takeoff()
me.send_rc_control(0,20,0,0)
sleep(2)
me.send_rc_control(0,0,0,0)
me.land()
完整错误跟踪:
[INFO] tello.py - 122 - Tello instance was initialized. Host: '192.168.10.1'. Port: '8889'.
[INFO] tello.py - 437 - Send command: 'command'
[INFO] tello.py - 461 - Response command: 'ok'
Traceback (most recent call last):
File "C:/Users/Lenovo/PycharmProjects/OpencvPython/venv/basicmovementconda.py", line 5, in <module>
me.connect()
File "C:\Users\Lenovo\anaconda3\envs\Tellotest\lib\site-packages\djitellopy\enforce_types.py", line 54, in wrapper
return func(*args, **kwargs)
File "C:\Users\Lenovo\anaconda3\envs\Tellotest\lib\site-packages\djitellopy\tello.py", line 546, in connect
raise Exception('Did not receive a state packet from the Tello')
Exception: Did not receive a state packet from the Tello
I'm facing a 'Did not receive state packet from Tello' error when trying to execute the below code in anaconda environment. Can someone help on this please?
from djitellopy import tello
from time import sleep
me = tello.Tello()
me.connect()
print(me.get_battery())
me.takeoff()
me.send_rc_control(0,20,0,0)
sleep(2)
me.send_rc_control(0,0,0,0)
me.land()
Full error trace:
[INFO] tello.py - 122 - Tello instance was initialized. Host: '192.168.10.1'. Port: '8889'.
[INFO] tello.py - 437 - Send command: 'command'
[INFO] tello.py - 461 - Response command: 'ok'
Traceback (most recent call last):
File "C:/Users/Lenovo/PycharmProjects/OpencvPython/venv/basicmovementconda.py", line 5, in <module>
me.connect()
File "C:\Users\Lenovo\anaconda3\envs\Tellotest\lib\site-packages\djitellopy\enforce_types.py", line 54, in wrapper
return func(*args, **kwargs)
File "C:\Users\Lenovo\anaconda3\envs\Tellotest\lib\site-packages\djitellopy\tello.py", line 546, in connect
raise Exception('Did not receive a state packet from the Tello')
Exception: Did not receive a state packet from the Tello
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我遇到了同样的问题,我在Linux上的3.9环境中,我打开了防火墙,所以我将其关闭并起作用!
I had the same issue and I'm on a 3.9 environment on Linux and I had my firewall turned on, so I turn it off and it worked!