# PX4 HITL using real motor

**URL:** <https://discuss.px4.io/t/px4-hitl-using-real-motor/28059>\
**Category:** PX4 Autopilot\
**Created:** [June 28, 2022, 1:30am UTC](https://discuss.px4.io/t/px4-hitl-using-real-motor/28059 "2022-06-28T01:30:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kesyk](https://discuss.px4.io/user_avatar/discuss.px4.io/kesyk/32/11008_2.png) [@Kesyk](https://discuss.px4.io/u/Kesyk)\
**Post date:** [June 28, 2022, 1:30am UTC](https://discuss.px4.io/t/px4-hitl-using-real-motor/28059/1 "2022-06-28T01:30:44Z")

</div>

hi,  
I am trying to operate the drone motor in both virtual and real environments at the same time using PX4. So, I am trying to modify the firmware, but I do not know which part to modify, so I ask a question.  
The virtual environment uses the observation deck environment.  
What I want is for drones in virtual and real environments to work simultaneously when doing HITL.  
Help…

---

<div class="post-metadata">

**Author:** ![Snicker](https://discuss.px4.io/user_avatar/discuss.px4.io/snicker/32/11021_2.png) [@Snicker](https://discuss.px4.io/u/Snicker)\
**Post date:** [June 28, 2022, 3:00pm UTC](https://discuss.px4.io/t/px4-hitl-using-real-motor/28059/2 "2022-06-28T15:00:13Z")

</div>

commenting to follow the topic, i am trying to do the same, im having trouble with what i think is the mavlink interface, but i am not sure. I did SITL and tried it and it worked, but cant with HITL with an hexacopter

---

<div class="post-metadata">

**Author:** ![L\_C](https://discuss.px4.io/user_avatar/discuss.px4.io/l_c/32/16939_2.png) [@L\_C](https://discuss.px4.io/u/L_C)\
**Post date:** [August 2, 2024, 9:00pm UTC](https://discuss.px4.io/t/px4-hitl-using-real-motor/28059/3 "2024-08-02T21:00:50Z")

</div>

It’s an old thread but has anyone figured this out? I want to do something similar, using airsim HITL for a simulation but have my craft running simultaneously.
