How to connect simultaneously between Simulated Vehicle and Companion Computers?

I was wondering if it is possible to simultaneously connect to a virtual drone and a physical buzz, UDP and USB. This is done to test the ground station as a function that allows you to control several unmanned aerial vehicles. I have only 1 physical and you want to check between them.

Or at least prove my suspicion that

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

Does this really give me all possible vehicles.

And just play with him from there.

Edit:

In my process, I reviewed MAVProxy and read about it. I can connect to the physical drone Iris + and virtual helicopter by following this . I start 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 using the following command

run

mavproxy.py --master=127.0.0.1:14550

Now I can connect to the physical as well using

mavproxy.py --master=/dev/USB0

When I try to use both

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

It doesn’t work, and I don’t even know if it will work for a start, I just tried. In general, I am trying to connect to 2 dummies and be able to control them using 1 ground control station.

API: for connecting to multiple vehicles

0
source

All Articles