microsoft / AirSim

Open source simulator for autonomous vehicles built on Unreal Engine / Unity, from Microsoft AI & Research
https://microsoft.github.io/AirSim/
Other
16.06k stars 4.48k forks source link

Airsim error: Not receiving any messages from HIL, please restart your HIL node and try again #4756

Open AshishSingh-Glitch90 opened 1 year ago

AshishSingh-Glitch90 commented 1 year ago

Hi, I am trying to implement flight simulation using Airsim hardware in the loop(HITL), px4 version 1.9.2 on pixhawk 2.4.8 by programming pixhawk using Qgroundcontrol which I was able to work. Now I want to implement the same with the Xbox Controller for which I followed:

https://microsoft.github.io/AirSim/xbox_controller/ and https://docs.px4.io/main/en/simulation/hitl.html

using this "MavLinkTest.exe -serial:*,115200 -proxy:127.0.0.1:14550 -server:127.0.0.1:14570" command I am able to build a connect between the QGroundControl and Proxy but Airsim shows a message to restart the HITL node as shown below:

Screenshot_QgroundControl_UDPconnection

image

My Airsim Json settings are:

{ "SeeDocsAt": "https://github.com/Microsoft/AirSim/blob/master/docs/settings.md", "SettingsVersion": 1.2, "SimMode": "Multirotor", "ViewMode": "", "ClockType": "SteppableClock", "Vehicles": { "PX4": { "VehicleType": "PX4Multirotor", "SitlIp": "", "SitlPort": 14560, "UdpIp": "127.0.0.1", "UdpPort": 14570, "UseSerial": false, "LockStep": true, "Parameters": { "NAV_RCL_ACT": 0, "NAV_DLL_ACT": 0, "COM_OBL_ACT": 1, "LPE_LAT": 47.641468, "LPE_LON": -122.140165 } } } }

Do you have any suggestion how I can fix this.

Thanks