Unable to connect SITL to AirSim


I am unable to connect SITL to AirSim. I am on Windows 11, WSL2 with Ubuntu-20.04, using the Colosseum repo (since AirSim is now unsupported), Unreal Engine 5.1.1, Visual Studio 2022. When I have settings.json as

“SeeDocsAt”: “https://github.com/Microsoft/AirSim/blob/main/docs/settings.md”,
“SettingsVersion”: 1.2

and then starting the blocks game I see

which tells me I’ve set up AirSim correctly. Then I update my settings.json to

“SeeDocsAt”: “https://github.com/Microsoft/AirSim/blob/main/docs/settings.md”,
“SettingsVersion”: 1.2,
“LogMessagesVisible”: true,
“SimMode”: “Multirotor”,
“OriginGeopoint”: {
“Latitude”: -35.363261,
“Longitude”: 149.165230,
“Altitude”: 583
“Vehicles”: {
“Copter”: {
“VehicleType”: “ArduCopter”,
“UseSerial”: false,
“LocalHostIp”: “”,
“UdpIp”: “”,
“UdpPort”: 9003,
“ControlPort”: 9002

based on the instructions I found here GSoC 2019: AirSim Simulator Support for ArduPilot SITL Part II - #5 by rajat2004. After following those instructions and starting AirSim, I start SITL with sim_vehicle.py -v ArduCopter -f airsim-copter --console --map. This is what I see after following all of the steps.

Just to clarify, the [2023.07.17-03.29.30:463][513]LogTemp: Error while receiving rotor control data - ErrorNo: -1 shows up in the console of visual studio in the background. The rest of the consoles in the front are the SITL windows. How do I fix this?

The same for me, can’t connect AirSim on windows 10 with ArduPilot on WSL Ubuntu 22.04, same error.

1 Like