Closed maxystory closed 2 years ago
Hi @maxystory, and welcome! Thank you for your report. I think you are using unreal engine 4.25, not 4.23, which is not compatible with the latest version of AirSim. We will take a look at this.
Hi @jonyMarino, thanks for the reply! After days of trial and error, I found out that the MavlinkTest worked for me on airsim v1.2.0, VS17, running unreal engine 4.18. Like you suggested, I have also tried unreal engine 4.23 and 4.25, and it both didn't work. Perhaps I am doing something incorrect but I hope you guys can look into it for future development.
I think the reason behind is, the udp port setting (in settings.json) is not working properly on unreal engine 4.23. When I opened a UDP server in MavlinkTest (127.0.0.1:14560), I don't see signs of the udp port working. Maybe it self connects? Also, no matter what udp port I enter in the settings.json, it seems to claim it successfully connects to the udp socket.
I hope this helps you on fixing the issue. Thank you for all airsim's team great work!
@maxystory Mavlink-router can be used instead of MavlinkTest. @pp00uya it should be possible. Please share the details in a new issue. Closed due to inactivity. Please, feel free to ask for it to be reopened if you wish to continue posting.
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:
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
Question
What's your question?
I'm trying to connect a HIL Pixhawk4 to Airsim Unreal Engine through MavlinkTest UDP. The Pixhawk4 is version 1.11.3, and Airsim is running on VS19 and a windows 10 laptop. The reason being is I would like to add sensor error through MavlinkTest.
Include context on what you are trying to achieve
On the developer VS19 cmd, it looks like this:
Many thanks for your suggestions and help!
Context details
The AirSim version is the latest 1.4.0 windows version. The unreal version is 4.23.1. The settings.json are
Include details of what you already did to find answers