How to connect between Simulated Vehicle and Companion Computers at the same time?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-12 03:34:14

问题


I was wondering if it was possible to connect to a virtual drone and physical drone at the same time, UDP and USB. This is to test ground station like functionality to be able to control multiple drones. I only have 1 physical and want to test between both.

Or to at least prove my suspicion that

api = local_connect()     # Get an APIConnection
all_vehicle = api.get_vehicles()

Does in fact give me all possible connected vehicles.

And just play with it from there.

Edit:

What my process was is looking at MAVProxy and read up on it. I can connect to a physical drone Iris+ and a virtual copter by following this. I run the instance with this command sim_vehicle.sh -v ArduCopter -L PLACE --map --console --out :14550 It works well and I can connect to it using MavProxy via the following command

start up

mavproxy.py --master=127.0.0.1:14550

Now I can connect to the physical as well with

mavproxy.py --master=/dev/USB0

When I try to use with both

mavproxy.py --master=127.0.0.1:14550 --master=/dev/USB0

It doesn't work and I don't even know if it would work to begin with I was just trying. All in all what i am trying to do is being able to connect to 2 drones and be able to control them with 1 ground control station.

API: to connect to multiple vehicles

来源:https://stackoverflow.com/questions/31390280/how-to-connect-between-simulated-vehicle-and-companion-computers-at-the-same-tim

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!