繁体   English   中英

使用 djitellopy 起飞后出现“无命令着陆”错误消息

[英]'No command land 'P' error message after takeoff using djitellopy

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

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

如果有任何帮助,我将不胜感激!

我可以在代码的第 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 .. ,所以你的代码变成了这样:

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

那应该可以正常工作! 请享用!

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM