# MAVLink component to act as Auto-Pilot

**URL:** <https://discuss.px4.io/t/mavlink-component-to-act-as-auto-pilot/28659>\
**Category:** MAVLink\
**Created:** [August 10, 2022, 8:23am UTC](https://discuss.px4.io/t/mavlink-component-to-act-as-auto-pilot/28659 "2022-08-10T08:23:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![patatessever](https://discuss.px4.io/user_avatar/discuss.px4.io/patatessever/32/11361_2.png) [@patatessever](https://discuss.px4.io/u/patatessever)\
**Post date:** [August 10, 2022, 8:23am UTC](https://discuss.px4.io/t/mavlink-component-to-act-as-auto-pilot/28659/1 "2022-08-10T08:23:22Z")

</div>

Hello everybody! I want to create a script to act as an Auto-pilot. The idea is I have an auto-pilot application which is not ardupilor nor PX4. I will create a wrapper between my autopilot and the autopilot script that I wrote. I want to send data from QGC to this script and wrapper will convert it to a data type whch my auto-pilot will understand. I am able to send heartbeat from auto-pilot script to QGC by using pymavlink yet I am not sure how to send all the data QGC needs to see my script as a drone. Do you guys have any idea about it?

---

<div class="post-metadata">

**Author:** ![sibujacob](https://discuss.px4.io/user_avatar/discuss.px4.io/sibujacob/32/9673_2.png) [@sibujacob](https://discuss.px4.io/u/sibujacob)\
**Post date:** [January 8, 2023, 12:42pm UTC](https://discuss.px4.io/t/mavlink-component-to-act-as-auto-pilot/28659/2 "2023-01-08T12:42:33Z")

</div>

i think you cannot use here Lua script for Px4. need to go into Ardupilot community
