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
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?