MAVProxy is designed to control 1 vehicle per instance. Controlling multiple vehicles would require a substantial re-design of MAVProxy and is not currently on the "to-do" list.
However, there is very limited support for displaying (not controlling) multiple vehicles on the map. This should be considered an experimental feature only, as it was developed for a specific application (2016 UAV Challenge) where two UAV's were required to be displayed on a single map.
从MAVProxy docs:
如果你只需要在一张地图上查看它们,那么那里的说明应该对你有用。在
你想做些和蜂群有关的事吗? 在ardupilot网站上,他们提到了以下内容:
我认为不可能,但最好把你的问题贴在Ardupilot forum community上。在
我喜欢这个主意,它将非常有用。在
我已经成功地使用
Dronkit-SITL
和QGroundControl
进行了群集/群集模拟。问题是,SITL TCP端口是硬编码在ArduPilot
固件中的。如果你想模拟多辆车,你必须修改ArduPilot
的源代码,并分别从每辆车的源代码进行编译。在例如,一个5辆车的群集模拟需要5个不同的车辆固件用不同的TCP端口编码。另外,模拟的
eeprom.bin
应该稍微调整一下以正常工作(甚至适合实际车辆)。在基本上,监视TCP端口应该可以同时使用
Dronekit-SITL
和Mavproxy
,因此在Mavproxy
中进行多车辆仿真应该没有问题。在更多细节可以在我的Github repo上找到(尽管自述文件相当长)。希望有帮助!在
https://github.com/weskeryuan/flydan
相关问题 更多 >
编程相关推荐