I’m trying to send simulated mavlink gps messages (using a Companion Computer) through GPS2 Port using Mavlink Protocol.
I can see the messages on Mavlink inspector (when connected to pixhawk on MP) as shown in the image and it looks ok, but I can’t get the pixhawk to use as gps source.
The messages appear inside the vehicle but in a different COMP ID (see picture). Is there something I am missing?
In my case, GPS1 is connected to a default Holybro GPS module, while GPS2 is configured as the primary GPS. That’s why I’m trying to use GPS2 for the MAVLink GPS input.
I also tested your suggestion by disabling SERIAL3 (setting its protocol to None), but the issue still persists. The MAVLink GPS data continues to appear under a different component ID, and it’s not being recognized/used as a GPS source by the Pixhawk.
Is there something specific I should be doing to make the autopilot associate those MAVLink messages with the GPS driver? Or is there a requirement regarding the component ID or message routing that I might be missing?
All your pictures don’t refle> ct what you are writing.
“GPS1 is connected to a default Holybro GPS module”
As also @Yuri_Rage mentioned I think you mismatch the pyhysical labeled GPS connector with the logical GPS number.
As long only one GPS is defined I think this is always GPS1 also if it is connected to the connector Serial GPS 2.
If you want to use it as logical GPS2 as shown, you also have to connect and define your Holybro GPS correct on GPS1
But it is always bad not to have your complete latest params to double check