# Change the Parameter MAV\_COMP\_ID in QGroundControl

**URL:** <https://discuss.px4.io/t/change-the-parameter-mav-comp-id-in-qgroundcontrol/24949>\
**Category:** Using QGroundControl\
**Created:** [November 10, 2021, 11:14am UTC](https://discuss.px4.io/t/change-the-parameter-mav-comp-id-in-qgroundcontrol/24949 "2021-11-10T11:14:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mariiaolano97](https://discuss.px4.io/user_avatar/discuss.px4.io/mariiaolano97/32/9664_2.png) [@mariiaolano97](https://discuss.px4.io/u/mariiaolano97)\
**Post date:** [November 10, 2021, 11:14am UTC](https://discuss.px4.io/t/change-the-parameter-mav-comp-id-in-qgroundcontrol/24949/1 "2021-11-10T11:14:02Z")

</div>

Hello Everyone!  
I have a problem with MAV\_COMP\_ID parameter. I changed from QGoundControl this parameter from default value (“1”) to value 50. After that I’m not able to connect my px4 module to QGroundControl via USB or via Telemetry.  
After that problem I changed next few things:  
I changed the parameter target\_component\_id from 1 to 50 by rosparam set /mavros/target\_component\_id 50 and also I changed the parameter “tgt\_component” from the file launch px4.launch. With all this changed I was able to communicate the px4 module with the raspberry when I launch the next file: roslaunch mavros px4.launch fcu\_url:=/dev/ttyUSB0:57600 gcs\_url:=“udp://@192.168.0.102:14550”  
When I enter to QGroundControl and I activate the Common Link that I created:  
QGC-\>Application Settings-\>Comm Links-\>add  
Name: test2  
Type: UDP  
Listening port: 14550  
Target Hosts: 192.168.0.102:14550  
Still I can not connect to QGroundControl so I flashed the firmware but still doesn’t connect.

Does someone have any idea how to solve the problem or how to reset the parameter MAV\_COMP\_ID?

Thank you!

---

<div class="post-metadata">

**Author:** ![Christian-Born](https://discuss.px4.io/user_avatar/discuss.px4.io/christian-born/32/9410_2.png) [@Christian-Born](https://discuss.px4.io/u/Christian-Born)\
**Post date:** [November 10, 2021, 5:21pm UTC](https://discuss.px4.io/t/change-the-parameter-mav-comp-id-in-qgroundcontrol/24949/2 "2021-11-10T17:21:55Z")

</div>

Hello there.  
Yes I think I can help you.^^  
Use “Mission Planner” (it will connect) then go to “full parameter tree”, “MAV” and there reset the comp\_id to 1.

I have no idea why QGC stops connecting with this altered but Mission Planner helped me out here a couple times too, already. ,)  
cheers

---

<div class="post-metadata">

**Author:** ![anderson\_rayner](https://discuss.px4.io/user_avatar/discuss.px4.io/anderson_rayner/32/8542_2.png) [@anderson\_rayner](https://discuss.px4.io/u/anderson_rayner)\
**Post date:** [November 11, 2021, 11:44pm UTC](https://discuss.px4.io/t/change-the-parameter-mav-comp-id-in-qgroundcontrol/24949/3 "2021-11-11T23:44:57Z")

</div>

Alternatively if you wanted to keep the SysID at 50, you could route the mavlink traffic using [mavlink-router](https://github.com/mavlink-router/mavlink-router) and make the PX4 → GCS connection independent of ROS. You then point mavros to a udp endpoint (created with mavlink-router) and everything should behave as expected.

Your ROS node will still have an ID of 1, component 240 (at least it does for me on Noetic) so you’ll have to modifying the mavros node launcher to give it the correct system ID too.
