WE using a Extarnal GNss RTk device, with dual atenna, We can send it position and speed information, but not the heading. The Blueboat’s magnetic heading is giving us a lot of trouble, and we want to use the one coming from the dual antenna through the UDP port. Can anyone give me instructions on how to do this?
Hi @juanjepalomeke -
Have you confirmed that the messages are coming through in BlueOS, via the Mavlink Inspector (in pirate mode?) QGC is just a ground control station software - it has no relevance to configuring the autopilot to receive and use NMEA messages.
If you can share a copy/paste of the messages the system is sending, and the data from Mavlink Inspector, we should be able to drill down into what might be going wrong. Sharing your autopilot .BIN log with the GPS active would also be useful!
You may need to set your EK3_src1_yaw parameter to GPS with compass fallback!
We sent the hdt, gga, vtg & rmc nmea messages at 10 hz using the 27000 port. All messages out thats revised. But only gga, vtg & rmc are being used.
While searching through the forums I found this suggestion from 2017:
This supports getting yaw from a GPS that can provide it when not moving, such as the Hemisphere NMEA GPS, which uses the HDT NMEA sentence
This builds on work that @priseborough has done in EKF3 to allow for fusion of external yaw sources
To test this in SITL you need:
I’ll check this to see if the problem is here, but from BlueOS, when the NMEA Injector is activated, it only accepts GGA, VTG, and RMC; it doesn’t mention HDT at all.
Hi @juanjepalomeke -
That post is very old… so take it with a grain of salt!
You should see a black arrow on the compass graph, found under Vehicle Setup / Compass, in the upper left:
You should NOT be using the NMEA injector if you are sending the data directly do the autopilot, via the 27000 port. Have you set serial 2 to udpin:27000 as the FAQ instructs? Please review the instructions in my first reply to you.
Hi @juanjepalomeke -
What version of BlueOS are you using?
Do you have 2 GPS connected to the system, as is typical for RTK systems with heading? I only see one GPS icon in your screenshot - on my own system with 2x GPS there are two shown!
I’m not sure why you’re “waiting for the log” - it can be downloaded from the Log Browser, you just need to arm the vehicle for some time and disarm, then download the log and post here!
I believe the last update was last week; the entire system was updated. We only need to update the master file, which was indicated this morning during the configuration.
No, we have a single GPS with two internal antennas, capable of sending NMEA HDT as one of its generic commands. we need to read $GPHDT
I’m in Valencia and the Blueboat is in Barcelona. Late this morning, the 5G SIM card ran out of data… We were about to download the log for you when the data ran out. I can send it to you on Monday.
I hope this doesn’t mean you are running “master” version of BlueOS!
It’s best to only use stable - 1.4.3 currently - as anything else may have problems that could affect usage - hence the “Beta” label!
I think we only install stable versions, not betas… But I still don’t know if it’s possible to read $GPHDT commands from an external RTK GPS using UDPIN 0.0.0.0:27000
Hi @juanjepalomeke -
It definitely is possible, we’ve had no issues doing just that on multiple vehicles. I suspect the message isn’t being sent, or not sent fast enough, or some other configuration issue is present. We shall see!
Hi @juanjepalomeke -
I assume the GPHADT is a typo - you actually need to be sending GPHDT for heading values.
I also assume your vehicle IP address has been changed to 192.168.25. 255 ?
I’m also not sure why you’re setting up GPS2 to be your primary GPS? But the parameters look correct otherwise. The .BIN log will let us troubleshoot further.
First.- You are right that the UPD messages has to be directed to de Blueboats’s physical IP address..
Second.- We couldn’t see the data from the GPS because we were always thinking of the external RTK GPS like GPS2, but the generic GPS that is plugged into the Navigator, in our case it was serial 5, therefore it was actually GPS1 by the reading order of the Ardupilot …
We’re now receiving data from the external HDT, but occasionally a zero appears in the reading, and we don’t know why. What solution do you propose? Is there any way to avoid zero values, perhaps by averaging readings? What’s going on?
I’m sending you the log, in case you want to take a look.
Hi @juanjepalomeke -
Glad you got things more figured out! The logs show the GPS is indeed sending 0 for heading on occasion - I think this can occur if the two antennas are not spaced out far enough, and an estimation of heading fails… it would be ideal to fix this on the GPS side, rather than get the autopilot to ignore the 0 values - as sometimes you may be heading due north (0 degrees!)
I would consult the documentation for your GPS and verify the spacing of the antennas is at least 1 to 1.5m, and this value is known to the GPS configuration.
You could also try configuring the autopilot to use the magnetic compass as a fallback, but this would only work if the GPS is able to report that the quality of the estiamtion is poor…