RflySimSDK v3.08
RflySimSDK说明文档
载入中...
搜索中...
未找到
RflyADBLib.py 文件参考

更多...

class  SerialCommunication
     更多...
 
class  adb_communication
     更多...
 
class  wifi_command
     更多...
 

函数

 extract_specific_mac (text, interface_name="wlan0")
 处理获取到的MAC地址消息
 
 ping_ip (ip_address)
 对指定IP进行ping操作
 
 start_adb (path)
 对指定指定路径打开adb驱动程序
 
 check_device_connected ()
 检查是否有设备连接
 
 stop_adb ()
 关闭adb服务
 
 signal_handler (sig, frame)
 处理程序关闭情况
 

变量

 psp_path = os.environ.get('PSP_PATH')
 
 adb_communication = adb_communication(debug_mode= False)
 
 wifi_command = wifi_command(adb_communication.send_command)
 

详细描述

该库是一键配置150脚本相关的函数库。

该库主要用于150飞机网络设置(热点和WIFI)、相机参数设置、相机启动、MAVLINK回传设置

函数说明

◆ check_device_connected()

check_device_connected ( )

检查是否有设备连接

  • 返回
    是否有设备连接的布尔值

◆ extract_specific_mac()

extract_specific_mac ( text,
interface_name = "wlan0" )

处理获取到的MAC地址消息

  • 参数
    interface_name(str)设置指定网络
    返回
    MAC地址

◆ ping_ip()

ping_ip ( ip_address)

对指定IP进行ping操作

  • 参数
    ip_address(str)需要PING的IP
    返回
    能否ping通的布尔值

◆ signal_handler()

signal_handler ( sig,
frame )

处理程序关闭情况

◆ start_adb()

start_adb ( path)

对指定指定路径打开adb驱动程序

参数
path(str)adb所在的路径

◆ stop_adb()

stop_adb ( )

关闭adb服务