QGroundControl doesn't recognize Pixhawk 6x

Hi, i have an issue with my pixhawk 6x. When Simulink automatically launches QGroundControl, the board is not recognized and it results disconnected. I’m using a UDP connection. Does somebody know how to fix the problem?

6 Comments

Can you please give more details on which example you are tryig with PIxhawk 6x? is it HITL with Simulink plant or jMAVsim or something else?
Hi @Arun Mathamkode, thanks for your comment. It is HITL with Simulink plant. In particular, we are following this guide: https://it.mathworks.com/help/supportpkg/px4/ref/hitl-simulink-plant-example.html but in the end, when QGC is automatically launched, the board is disconnected, even if every setting seems correct.
Can you check once in your QGC connection, if connection to Pixhawk is selected off? The pane should appear as below with everything except UDP turned off
@Ankur Bose thank you for your comment, but this setting has been correctly set. In fact, we followed this guide for QGC settings: https://it.mathworks.com/help/supportpkg/px4/ug/px4-hitl-qgc.html
Which QGC version you are using ? Whether this issue is there only when the QGC is automatically lanched from Simulink or you are seeing this when you manually lanch QGC as well?
@Arun Mathamkode We are using the current version (4.2.4.0) and we have the issue only when QGC is automatically launched from Simulink. In the other hand, when we open manually QGC, if the option "Pixhawk" is set in the General tab of the setting menu the board is recognized. Actually, we thought that the problem could be the OS (windows 10 is working with Pixhawk 2.1 Cube, while window 11 seems not to be compatible), but with Pixhawk 6x we have the same issue as always.

Sign in to comment.

Answers (1)

In HITL mode, the Pixhawk 6x is not supposed to connect directly to QGroundcontrol but via the MAVLink bridge in the Simulink plant. Hence, in QGC you need to deselect the Pixhawk checkbox and enable only UDP. To get the QGC connected to Pixawk 6x, just run the Simulink plant and it should bridge the MAVLink data between QGC and Pixhawk 6x

Asked:

on 1 Mar 2023

Answered:

on 14 Jul 2023

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!