从 无人机 进口 连接
#连接到UDP终结点。
车辆 = 连接 ( '127.0.0.1:14550' , 等待_就绪 = 真的 ) #使用返回的Vehicle对象查询设备状态-例如,获取模式:
打印 ( “模式:%s” % 车辆 . 模式 . 名称 )
文档: https://dronekit-python.readthedocs.io/en/latest/about/index.html 指南: [ https://dronekit-python.readthedocs.io/en/latest/guide/index.html ) API参考: [ https://dronekit-python.readthedocs.io/en/latest/automodule.html ) 示例: /dronekit-python/示例 论坛: 网址:http://discuss.dronekit.io/ 书写器: https://gitter.im/trenokit/strenokit-python 尽管我们更喜欢尽可能在论坛上发布帖子。