AirSim icon indicating copy to clipboard operation
AirSim copied to clipboard

How to set up two or more different vehicles and connect them to Pixhawks via USB???

Open Dflybird opened this issue 8 years ago • 2 comments

I want to connect two Pixhawks to the AirSim. Does the simulation supports two or more vehicles running in the environment ? My settings.json:

{
  "SettingsVersion": 1.0,
  "SimMode": "Multirotor",
  "DefaultVehicleConfig": "PX4"
  "PX4_1": {
    "FirmwareName": "PX4",
    "SitlIp": "127.0.0.1",
    "SitlPort": 14556,
    "UdpIp": "127.0.0.1",
    "UdpPort": 14560,
    "UseSerial": true,
    "SerialPort":"COM3",
    "ApiServerPort": 41451
  },
  "PX4_2": {
    "FirmwareName": "PX4",
    "SitlIp": "127.0.0.1",
    "SitlPort": 14557,
    "UdpIp": "127.0.0.1",
    "UdpPort": 14561,
    "UseSerial": true,
    "SerialPort":"COM4",
    "ApiServerPort": 41452
  }
}

but the AirSim could only found one pixhawk. As the picture below... 38858316-0a503cca-425e-11e8-85a4-2feb5a52b79f It could only connect COM3, but can't found COM4. What should I do to connect both of my Pixhawks to the AirSim????? PLEASE HELP ME!!! THANK YOU!

Dflybird avatar Apr 17 '18 08:04 Dflybird

@Dflybird, having the same problem here. Please contact me if you get the solution

Isaac45 avatar May 09 '18 08:05 Isaac45

Hi. Please take a look at the docs Closed due to inactivity. Please, feel free to ask for it to be reopened if you wish to continue posting.

jonyMarino avatar Jun 01 '21 15:06 jonyMarino