简体   繁体   English

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

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

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!如果有任何帮助,我将不胜感激!

i can see what your error is, on line 3 in your code,我可以在代码的第 3 行看到你的错误是什么,

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:仔细查看需要tello=Tello()tello=Tello .. ,所以你的代码变成了这样:

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!请享用!

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

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