'没有命令土地' p'使用Djitellopy起飞后的错误消息

发布于 2025-01-29 03:12:54 字数 201 浏览 3 评论 0原文

我写了这个非常简单的代码:

from djitellopy import Tello
import time
tello=Tello
tello.takeoff() # works just fine!
time.sleep(2)
tello.land() # returns error!

如果有任何帮助,我将非常感谢它!

I have written this very simple code:

from djitellopy import Tello
import time
tello=Tello
tello.takeoff() # works just fine!
time.sleep(2)
tello.land() # returns error!

If there is any help I would appreciate it greatly!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

洋洋洒洒 2025-02-05 03:12:54

我可以看到您的错误是什么,在您的代码中的第3行上,

from djitellopy import Tello
import time
tello=Tello
tello.takeoff() # works just fine!
time.sleep(2)
tello.land() # returns error!

仔细查看tello = tello ..这需要为tello = tello = tello(),所以代码变成了这样的:

from djitellopy import Tello
import time
tello=Tello()
tello.takeoff() # works just fine!
time.sleep(2)
tello.land() # returns error!

这应该可以正常工作!享受!

i can see what your error is, on line 3 in your code,

from djitellopy import Tello
import time
tello=Tello
tello.takeoff() # works just fine!
time.sleep(2)
tello.land() # returns error!

look closely at the tello=Tello .. that needs to be tello=Tello(), so ur code becomes this:

from djitellopy import Tello
import time
tello=Tello()
tello.takeoff() # works just fine!
time.sleep(2)
tello.land() # returns error!

and that should work fine! enjoy!

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