Unable to connect PX4 with AirSim on Windows (TCP port 4560 bind issue) #5053
Unanswered
katy-ho
asked this question in
Support Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I’m currently working on a drone project, but I’m facing an issue connecting PX4 with AirSim on Windows.
On the AirSim side, I see the following message:
Waiting for connection on TCP port 4560, local IP 172.22.126.1
On the WSL terminal running PX4 SITL:
INFO [simulator_mavlink] using TCP on remote host 127.0.0.1 port 4560
WARN [simulator_mavlink] Please ensure port 4560 is not blocked by a firewall.
INFO [simulator_mavlink] Waiting for simulator to accept connection on TCP port 4560
I’ve already added the port in Windows Security to allow it through the firewall, but the connection still doesn’t establish.
Has anyone faced this problem before? If so, how did you manage to fix it? Any guidance would be greatly appreciated.
Thank you!
This is my code for the settings.json file
{
"SettingsVersion": 1.2,
"SimMode": "Multirotor",
"ClockType": "SteppableClock",
"Vehicles": {
"PX4": {
"VehicleType": "PX4Multirotor",
"UseSerial": false,
"LockStep": true,
"UseTcp": true,
"TcpPort": 4560,
"ControlPortLocal": 14540,
"ControlPortRemote": 14580,
"ControlIP": "remote",
"UdpPort": 14550,
"LocalHostIp":"172.22.126.1",
"Sensors":{
"Barometer":{
"SensorType": 1,
"Enabled": true,
"PressureFactorSigma": 0.0001825
}
},
"Parameters": {
"NAV_RCL_ACT": 0,
"NAV_DLL_ACT": 0,
"COM_OBL_ACT": 1,
"LPE_LAT": 47.641468,
"LPE_LON": -122.140165
}
}
}
}
Beta Was this translation helpful? Give feedback.
All reactions