UAV Toolbox Support Package for PX4 Autopilots - QGroundcontrol disconnected
35 views (last 30 days)
Show older comments
matlab:R2025A
controller:cuav x7+pro
px4:v1.14.3
My controller successfully reads acceleration in Simulink.

The question is:My QGC is connected to the port, but it still shows "disconnected."I am unable to modify any parameters.

Before this, there were no issues with either the firmware downloaded from the official website or the one I compiled myself.The problem only occurs with the firmware compiled using the PX4 Toolbox.
0 Comments
Answers (1)
Sayan
less than a minute ago
I assume that you are running the model in monitor and tune or Connected IO mode of simulation. In that case QGC cannot connect to your hardware board since MAVLink is disabled for the USB port and it is by default used in Simulink for communcation with host.
For Connected IO you cannot change the hardware board serial port used port serial communication currently. However, if you use monitor and tune you can change the default hardware port to be used for serial communication between host and hardware board.
To do this you can follow the steps mentioned in the following documenation to make necessarry changes in configuration set parameters:
After making the changes ensure to check the checkbox to enable MAVLink in USB port. You can find the steps for the same here:
Now you can run monitor and tune and once the simulation has started open QGC and it should automatically connect to your hardware board. You can change the parameter values from QGC and verify the changes in the output of 'Read Parameter' block
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!