# AIRSIM and QGROUNDCONTROL HITL

**URL:** <https://discuss.px4.io/t/airsim-and-qgroundcontrol-hitl/16950>\
**Category:** QGroundControl\
**Created:** [June 1, 2020, 12:51pm UTC](https://discuss.px4.io/t/airsim-and-qgroundcontrol-hitl/16950 "2020-06-01T12:51:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bravepaulo](https://discuss.px4.io/letter_avatar_proxy/v4/letter/b/65b543/32.png) [@Bravepaulo](https://discuss.px4.io/u/Bravepaulo)\
**Post date:** [June 1, 2020, 12:51pm UTC](https://discuss.px4.io/t/airsim-and-qgroundcontrol-hitl/16950/1 "2020-06-01T12:51:14Z")

</div>

Hello everyone  
I am trying to set up a HITL configuration using a PIXHAWK 2.4.8, PX4 last release, QGROUNDCONTROL, AIRSIM, RC Taranis and LINUX 18.4. The only connection between PIXHAWK and computer is the USB cable.  
I am able to put the AIRSIM (unreal environment) up and running and fly a generic quadrotor, but I am not able to connect the QGROUND control, which stay issuing the following warning: “waiting vehicle connection”.  
The online documentation says that is possible to connect QGROUND control in HILT using AIRSIM, but I do not know what I am missing to make it works.  
Has anyone a advice how I can connect the QGC in an setup as described above?  
Thank you in advance.

---

<div class="post-metadata">

**Author:** ![Bravepaulo](https://discuss.px4.io/letter_avatar_proxy/v4/letter/b/65b543/32.png) [@Bravepaulo](https://discuss.px4.io/u/Bravepaulo)\
**Post date:** [June 2, 2020, 1:19pm UTC](https://discuss.px4.io/t/airsim-and-qgroundcontrol-hitl/16950/2 "2020-06-02T13:19:06Z")

</div>

Hello everybody  
An update about the issue.  
I was able to put QGC up and running with Airsim in HITL.  
There are in fact two ways to do that:  
One is to connect the Telemetry port to a USB a set QGC to serial com. This works, but it interferes in the simulation, as consequence it is not a good option.  
The second way is thorugh UDP port. According to online documentation it should be straightforward, but I have found that it requires to change the airsim setting file.  
The parameter I have changed was “LocalHostIp”.  
It was 127.0.0.1 and I changed to 127.0.0.2.  
Now the setup is working fine.

---

<div class="post-metadata">

**Author:** ![MSBGit](https://discuss.px4.io/user_avatar/discuss.px4.io/msbgit/32/5694_2.png) [@MSBGit](https://discuss.px4.io/u/MSBGit)\
**Post date:** [June 3, 2020, 2:53am UTC](https://discuss.px4.io/t/airsim-and-qgroundcontrol-hitl/16950/3 "2020-06-03T02:53:28Z")

</div>

I’m glad you solved it. I do this several different ways:

- Use a set of telemetry radios, one radio connected to the Pixhawk 4’s _TELEM1_ port and the other radio connected to the computer running QGC via USB and create a new Connection in QGC’s _Comm Links_ for the radio. The radio on the computer side shows up as a serial port.

- Create a new Connection in QGC’s _Comm Links_ to talk to AirSim on port 14550 (this port number is set in the AirSIm `settings.json` file in the `QgcPort` parameter). This allows QGC to talk to AirSim without requiring a separate data path from the Pixhawk TELEM1 port to the computer that QGC is running on.

I haven’t tried this yet, but I also believe it would be possible to use a 3.3V USB serial cable with the serial side connected to the Pixhawk’s _TELEM1_ port and the USB side to the computer that is running QGC.
