没有从Tello错误收到州数据包

发布于 2025-01-31 02:06:10 字数 1061 浏览 3 评论 0原文

在试图在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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

杀お生予夺 2025-02-07 02:06:10

我遇到了同样的问题,我在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!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文