只控制 M100 不带 GPS

Control M100 only without GPS

我正在尝试编写一个 C++ 程序,将无人机 (DJI Matrice 100) 从 A 点移动到 B 点,而不使用 GPS 坐标,因为我正在 GPS 信号不存在的地方进行测试。

我使用的是配备了 Guidance 和 Manifold 的 DJI Matrice 100 无人机。

我分析了 DJI_SDK_DEMO 但它都是使用 GPS 坐标。

谢谢!

基于ROS 版本,我认为您仍然需要一些GPS 信号。如果你查看 dji SDK ros SDK 的 wiki here and find the dji_sdk/local_position this publishes local position based off a GPS signal. You can see how that's done in the GPSConvertENU function in the source code here. If you need odometry indoors, you might have to add additonal sensors (Visual Odometry) such as the guidance to publish more info for you. If you have the A3/N3, DJI has another topic TOPIC_POSITION_VO which you can read more about here

希望对您有所帮助

我找到了问题的答案。

Matrice 100不开启GPS是不会飞的,所以即使没有GPS信号也需要连接。 在这样的环境中,控制无人机的唯一方法是使用虚拟遥控。 可以在此处找到文档:https://developer.dji.com/onboard-sdk/documentation/Protocol-Documents/virtual-rc-protocol.html

还有一些例子:https://github.com/dji-sdk/Onboard-SDK-ROS/blob/3.2/dji_sdk_demo/src/client.cpp#L505