问题标签 [dronekit]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
165 浏览

algorithm - 哪个是保护 MAVLink 协议的最佳加密算法?

我是 MAVLink 的新手。现在,我正在尝试检查无人机和 GCS 之间的数据丢失情况。之后,我想使用其中一种加密算法来保护 MAVLink 协议。哪一个是最好的?

感谢和问候

0 投票
1 回答
4227 浏览

python - Dronekit python 车辆连接超时

我们在让 Dronekit 与我们的直升机一起工作时遇到了一些麻烦。到目前为止,我们已经使用 SITL 测试了所有东西,一切正常,但是这种成功并没有很好地转移到真实的东西上。

我们的设置是:运行 Mavproxy 的 Windows GCS(通过 COM9 主控,Dronekit 脚本和 Mission Planner 的 UDP 输出)和一个基本的 Dronekit 脚本(起飞和着陆)。请参阅图表以获得更清晰的解释。

在此处输入图像描述

我们在运行 MAVProxy 时使用以下命令:mavproxy.exe --master=com9,57600 --out=udp:127.0.0.1:14550 --out=udp:127.0.0.1:14551 --console

我们遇到的问题是连接到车辆(http://python.dronekit.io/guide/connecting_vehicle.html),我们能够连接到无人机并获取一些电路板信息。然而,我们在 30 秒内没有收到心跳消息,导致超时。

我们可以通过设置 wait_ready=False 来绕过超时。使用它,我们可以连接到车辆并武装无人机。在起飞时,它只在某些时候起作用。当我们重置 MAVProxy 时,我们发现它更有可能工作(起飞)。

我想确认使用带有 Mission Planner 的 udp 127.0.0.1:14550 连接到无人机可以正常工作。

任何关于我们可能做错了什么的见解将不胜感激,谢谢!

0 投票
0 回答
48 浏览

python-2.7 - 无人机套件可以与 cx-10wd-tx mini 一起使用吗

我是一名程序员,刚开始接触无人机。我偶然发现了dronekit,并开始考虑用代码控制无人机。所以我对此有点陌生,真的需要一些帮助。

我想用代码控制一架迷你无人机。我想使用 python 和无人机套件来做到这一点。

我已尝试连接到我拥有的 mini,但我在代码中收到错误消息,提示尝试连接超时。

我有一架 cx-10wd-tx 无人机,可以用 dronkit 来控制这架无人机,如果不能,有没有可以使用的 mini?

0 投票
1 回答
465 浏览

dronekit-python - Dronekit 示例跟随我 Python 脚本不起作用

我尝试从dronekit 运行一个示例脚本。代码如下所示:

我尝试在带有 Raspbian OS 的 Raspberry 中运行它,但我收到如下错误消息:

我感觉我的树莓派需要一个 gps 类型的设备才能运行这个脚本,但我真的不知道。请告诉我它有什么问题..

我从这里得到的完整指令路径:http: //python.dronekit.io/1.5.0/examples/follow_me.html

0 投票
1 回答
243 浏览

dronekit-python - 带有hello.py示例的dronekit新手查询

我已经安装了dronekit 和dronekit sitl 并创建了hello.py 示例,我得到以下错误我是一个新手,如果它很明显很抱歉。这是我在 debian 下的 raspberry 3 上使用 python 2.7 运行的输出。这是代码

这是我得到的输出:

非常感谢您的帮助

0 投票
1 回答
295 浏览

drone - vehicle.location.local_frame 返回无

我将 px4 AC3.5.4 与覆盆子一起使用。我的目标是在他的本地框架中没有全局(gps)的自主定位无人机。我以 GUIDED_NOGPS 模式武装无人机并起飞。我使用下一个命令请求我在本地框架中的位置:vehicle.location.local_frame,但它返回“north=none,west=none,down=none”我做错了什么?

0 投票
1 回答
80 浏览

python - Creating a subclass without direct access to the parent class __init__() function

I'm using the DroneKit API in Python for controlling a drone using a companion computer. I'm trying to create a class, Vehicle, which inherits from the Vehicle class in DroneKit. The purpose of this class is for me to override some methods present in DroneKit that don't work with PX4 as well as adding a few methods of my own, whilst still having access to all of the methods available by default.

The issue is that you don't create a Vehicle object directly using Dronekit – you call the connect() function which return a Vehicle object.

My question is, how do I create an instance of my class?

The accepted method seems to be to call the parent init(), like so:

But like I said, you don't create a Vehicle object directly in Dronekit, e.g. vehicle = Vehicle(stuff), but by vehicle = connect(stuff), which eventually returns a Vehicle object but also does a bunch of other stuff.

The only way I can think of is

And then having to use self.vehicle.function() to access the default DroneKit commands and attributes, which is a huge pain.

How do I make this work?

0 投票
1 回答
490 浏览

dronekit - 使用 USB 将 Android 连接到 Pixhawk

我正在寻找一种使用 USB(OTG)电缆将我的 pixhawk 连接到安卓设备的方法。

在做了一些研究之后,我认为有两种可能的方法可以做到这一点。使用 pixhawk 上的微型 USB 端口或仅使用 USB FTDI 电缆来使用遥测端口。

我在问是否可以将dronekit android与这些选项中的任何一个一起使用?

如果是的话,你会推荐哪一个。

谢谢

0 投票
1 回答
199 浏览

dronekit-python - 相机事件 Dronekit

是否可以使用dronekit 拍摄图像或视频以进行 3DR 独奏?

当飞行员从地面控制站拍摄快照或视频时,是否有要听的事件?

0 投票
1 回答
566 浏览

python-2.7 - 如何在通过任务规划器上传任务时从 Pixhawk 获取 Waypoints 信息并将其发送到 Raspberry?

我正在使用固定翼无人机进行一个项目。

当无人机到达某些航路点时,我想执行 RC 覆盖。

我已经定义了航点并使用 Misison Planner 将任务上传到 Pixhawk

我有一个 4G 模块连接到 Raspberry Pi,然后通过 USB 连接到 Pixhawk 以与 Mission Planner 建立 UDP 连接

有没有办法知道我是否使用 Python DroneKit 从 Raspberry Pi 到达第二个航点,而没有在 Pi 上的脚本中定义我的航点?

如果有人对如何做到这一点有任何想法,或者如果不可能这样做?

感谢你的帮助