dji-sdk / RoboMaster-SDK

DJI RoboMaster Python SDK and Sample Code for RoboMaster EP.
Apache License 2.0
327 stars 150 forks source link

组网模式下Tello Talent无法连接SDK #29

Closed qcgzxw closed 4 years ago

qcgzxw commented 4 years ago

Tello Talent 按照文档先用直连到Tello_开头的WIFI,运行程序设置组网模式

import robomaster
from robomaster import robot

if __name__ == '__main__':
    robomaster.config.LOCAL_IP_STR = "192.168.10.2"
    tl_drone = robot.Drone()
    tl_drone.initialize()

    # 切换飞行器WiFi模式为组网模式,指定路由器SSID和密码
    tl_drone.config_sta(ssid="TL-WR886N", password="12345678")

    tl_drone.close()

Tello Talent重启后自动连接WIFI TL-WR886N 在路由器管理界面也能看到分配了IP(192.168.0.101),但是电脑(192.168.0.102)通过SDK操作时,程序无响应。

import robomaster
from robomaster import robot

if __name__ == '__main__':
    # 如果本地IP 自动获取不正确,手动指定本地IP地址
    robomaster.config.LOCAL_IP_STR = "192.168.0.102"
    robomaster.config.ROBOT_IP_STR = "192.168.0.101"
    tl_drone = robot.Drone()
    # 初始化
    tl_drone.initialize()

    # 获取飞机SDK版本信息
    version = tl_drone.get_sdk_version()
    print("Drone SDK Version: {0}".format(version))

    **tl_drone.close()**

qcgzxw commented 4 years ago

连接RMTT_开头的WIFI后执行程序 也是卡死

qcgzxw commented 4 years ago

已升级最新版本固件