# UM982 dual Antenna heading

**URL:** <https://discuss.px4.io/t/um982-dual-antenna-heading/33291>\
**Category:** Uncategorized\
**Created:** [July 17, 2023, 12:56pm UTC](https://discuss.px4.io/t/um982-dual-antenna-heading/33291 "2023-07-17T12:56:38Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vamsi\_Chaitu](https://discuss.px4.io/user_avatar/discuss.px4.io/vamsi_chaitu/32/13888_2.png) [@Vamsi\_Chaitu](https://discuss.px4.io/u/Vamsi_Chaitu)\
**Post date:** [July 17, 2023, 12:56pm UTC](https://discuss.px4.io/t/um982-dual-antenna-heading/33291/1 "2023-07-17T12:56:38Z")

</div>

Hi

I am using um982 dual antenna module for yaw along with RTK. I followed the steps given in the PX4 guide. I can see the yaw movement when i rotate the drone but irrespective of drone orientation it is pointing north always whenever i restart the controller and from there it is rotating.

Using PXcube orange. Antennas are mounted on front and back with 30cm apart.

---

<div class="post-metadata">

**Author:** ![JulianOes](https://discuss.px4.io/user_avatar/discuss.px4.io/julianoes/32/30_2.png) [@JulianOes](https://discuss.px4.io/u/JulianOes)\
**Post date:** [July 17, 2023, 9:58pm UTC](https://discuss.px4.io/t/um982-dual-antenna-heading/33291/2 "2023-07-17T21:58:51Z")

</div>

I would guess that GPS heading is actually not working and it’s instead just initializing North on boot up.

What’s your [EKF2\_GPS\_CTRL](https://docs.px4.io/main/en/advanced_config/parameter_reference.html#EKF2_GPS_CTRL) parameter?

---

<div class="post-metadata">

**Author:** ![Vamsi\_Chaitu](https://discuss.px4.io/user_avatar/discuss.px4.io/vamsi_chaitu/32/13888_2.png) [@Vamsi\_Chaitu](https://discuss.px4.io/u/Vamsi_Chaitu)\
**Post date:** [July 18, 2023, 5:44am UTC](https://discuss.px4.io/t/um982-dual-antenna-heading/33291/3 "2023-07-18T05:44:03Z")

</div>

EKF2\_GPS\_CTRL parameter value is 15

---

<div class="post-metadata">

**Author:** ![JulianOes](https://discuss.px4.io/user_avatar/discuss.px4.io/julianoes/32/30_2.png) [@JulianOes](https://discuss.px4.io/u/JulianOes)\
**Post date:** [August 24, 2023, 12:29am UTC](https://discuss.px4.io/t/um982-dual-antenna-heading/33291/4 "2023-08-24T00:29:12Z")

</div>

I heard of a report where the heading message had to be turned on in the Uprecise tool. Have you tried that?

---

<div class="post-metadata">

**Author:** ![Vamsi\_Chaitu](https://discuss.px4.io/user_avatar/discuss.px4.io/vamsi_chaitu/32/13888_2.png) [@Vamsi\_Chaitu](https://discuss.px4.io/u/Vamsi_Chaitu)\
**Post date:** [August 24, 2023, 12:18pm UTC](https://discuss.px4.io/t/um982-dual-antenna-heading/33291/5 "2023-08-24T12:18:22Z")

</div>

@JulianOes Thank you for the reply.  
Yes, I reported that after testing.  
Actually issue was with the Holybro default configuration. GPS is sending completly wrong message and Pixhawk doesnt have parser for that so it was not working. Later I enabled the requried message and it started working.  
Details about the issue: [Holybro UM982 GPS heading · Issue #139 · PX4/PX4-GPSDrivers · GitHub](https://github.com/PX4/PX4-GPSDrivers/issues/139)

Solution:  
Run the following commands in UPrecise tool to get the heading output from GPS

```auto
UNIHEADINGA COM1 0.2
SAVECONFIG

```

---

<div class="post-metadata">

**Author:** ![JulianOes](https://discuss.px4.io/user_avatar/discuss.px4.io/julianoes/32/30_2.png) [@JulianOes](https://discuss.px4.io/u/JulianOes)\
**Post date:** [August 25, 2023, 3:42am UTC](https://discuss.px4.io/t/um982-dual-antenna-heading/33291/6 "2023-08-25T03:42:10Z")

</div>

> [@Vamsi\_Chaitu](#):
>
> GPS is sending completly wrong message and Pixhawk doesnt have parser for that so it was not working.

Which message is it sending by default? Maybe we need to add parsing for that one?

---

<div class="post-metadata">

**Author:** ![Vamsi\_Chaitu](https://discuss.px4.io/user_avatar/discuss.px4.io/vamsi_chaitu/32/13888_2.png) [@Vamsi\_Chaitu](https://discuss.px4.io/u/Vamsi_Chaitu)\
**Post date:** [August 25, 2023, 11:58am UTC](https://discuss.px4.io/t/um982-dual-antenna-heading/33291/7 "2023-08-25T11:58:36Z")

</div>

Default output from UM982 for heading

```auto
#AGRICA,81,GPS,FINE,2274,292528000,0,0,18,27;GNSS,232,23,8,9,9,15,10,5,4,7,5,6,-0.9135,1.4475,-0.0400,0.0541,0.0978,0.1225,0.5867,-0.4194,0.0000,0.003,0.001,0.002,-0.002,0.051,0.040,0.065,50.95425087438,6.89550221116,48.3615,3996923.3714,483362.5189,4930414.1171,0.0550,0.0981,0.1250,0.1175,0.0941,0.0748,50.95425908545,6.89548161083,95.3171,0.00000000000,0.00000000000,0.0000,292528000,1.000,46.991943,46.915642,0.000000,0.000000,6,0,0,0*c64c9770

```

Px4 required format:

```auto
#UNIHEADINGA,97,GPS,FINE,2190,365174000,0,0,18,12;INSUFFICIENT_OBS,NONE,0.000 0,0.0000,0.0000,0.0000,0.0000,0.0000,"",0,0,0,0,0,00,0,0*ee072604 

```

I already sent a mail to Holybro support regarding the issue and requested them to update it.  
If not we can add the work around to the px4 docs for now.

---

<div class="post-metadata">

**Author:** ![JulianOes](https://discuss.px4.io/user_avatar/discuss.px4.io/julianoes/32/30_2.png) [@JulianOes](https://discuss.px4.io/u/JulianOes)\
**Post date:** [August 29, 2023, 8:51am UTC](https://discuss.px4.io/t/um982-dual-antenna-heading/33291/8 "2023-08-29T08:51:46Z")

</div>

Fix coming: Fix coming: [gps: request Unicore HEADINGA message by julianoes · Pull Request #22015 · PX4/PX4-Autopilot · GitHub](https://github.com/PX4/PX4-Autopilot/pull/22015)

Give the PR a try and let me know if this works for you.

---

<div class="post-metadata">

**Author:** ![Vamsi\_Chaitu](https://discuss.px4.io/user_avatar/discuss.px4.io/vamsi_chaitu/32/13888_2.png) [@Vamsi\_Chaitu](https://discuss.px4.io/u/Vamsi_Chaitu)\
**Post date:** [August 30, 2023, 9:57am UTC](https://discuss.px4.io/t/um982-dual-antenna-heading/33291/9 "2023-08-30T09:57:46Z")

</div>

@JulianOes I tried and its working fine now.

Right now gps frequency increased from 10hz to 15hz after the update. does it effect much?

---

<div class="post-metadata">

**Author:** ![JulianOes](https://discuss.px4.io/user_avatar/discuss.px4.io/julianoes/32/30_2.png) [@JulianOes](https://discuss.px4.io/u/JulianOes)\
**Post date:** [September 4, 2023, 2:43am UTC](https://discuss.px4.io/t/um982-dual-antenna-heading/33291/10 "2023-09-04T02:43:38Z")

</div>

That’s odd. I guess the frequency is only perceived to be more often because of the additional heading messages. I will look into this.

---

<div class="post-metadata">

**Author:** ![JulianOes](https://discuss.px4.io/user_avatar/discuss.px4.io/julianoes/32/30_2.png) [@JulianOes](https://discuss.px4.io/u/JulianOes)\
**Post date:** [September 4, 2023, 2:50am UTC](https://discuss.px4.io/t/um982-dual-antenna-heading/33291/11 "2023-09-04T02:50:09Z")

</div>

Hm, I just tried to reproduce this and for me the rate is 10 Hz. That’s with using lastest main and stock Unicore config as shipped by Holybro.

---

<div class="post-metadata">

**Author:** ![Vamsi\_Chaitu](https://discuss.px4.io/user_avatar/discuss.px4.io/vamsi_chaitu/32/13888_2.png) [@Vamsi\_Chaitu](https://discuss.px4.io/u/Vamsi_Chaitu)\
**Post date:** [September 20, 2023, 9:20am UTC](https://discuss.px4.io/t/um982-dual-antenna-heading/33291/12 "2023-09-20T09:20:39Z")

</div>

I tested again it is 10Hz now.

---

<div class="post-metadata">

**Author:** ![O\_G](https://discuss.px4.io/letter_avatar_proxy/v4/letter/o/ac8455/32.png) [@O\_G](https://discuss.px4.io/u/O_G)\
**Post date:** [September 28, 2023, 8:39pm UTC](https://discuss.px4.io/t/um982-dual-antenna-heading/33291/13 "2023-09-28T20:39:15Z")

</div>

Got this same problem, that the compass always starts up at 0dg north no matter what the direction of the drone is. Compass is alive, just not against true north.

Tried all kinds of solutions , also from this thread (uniheadinga com1 0.2 etc) , but cant make it work. (Px4 1.14 latest beta, also tested AP 4.4.1)  
Px4 settings acc to holybro docs.

I also struggle to understand Uprecise 100%.  
If i reset the um982 acc to holybro procedure, i seem to only see the datastream from com3 in the unit.  
If i put in uniheadinga com1 0.2, it confirms OK but no changes seen in the datastream. (Ofcourse i saveconfig and reboot as well).  
It connects to com3 automaticly it seems. If i set com1/2/3 to different baudrates, it always choose the baudrate for com3 at connect, which to me tells me the datastream is on Com3 only?

Can someone try to explain step by step how you reset at set the correct settings to get this unit to work as it is supposed to?  
And perhaps explain me how the com1/2/3 behaves in Uprecise datastream, so i can understand this better?

I got 2 units here, same behaviour on both.

---

<div class="post-metadata">

**Author:** ![Vamsi\_Chaitu](https://discuss.px4.io/user_avatar/discuss.px4.io/vamsi_chaitu/32/13888_2.png) [@Vamsi\_Chaitu](https://discuss.px4.io/u/Vamsi_Chaitu)\
**Post date:** [September 28, 2023, 9:53pm UTC](https://discuss.px4.io/t/um982-dual-antenna-heading/33291/14 "2023-09-28T21:53:20Z")

</div>

@O_G are you using RTK? if yes, is it fixed?  
did you set all the parameters correct?

---

<div class="post-metadata">

**Author:** ![O\_G](https://discuss.px4.io/letter_avatar_proxy/v4/letter/o/ac8455/32.png) [@O\_G](https://discuss.px4.io/u/O_G)\
**Post date:** [September 28, 2023, 10:01pm UTC](https://discuss.px4.io/t/um982-dual-antenna-heading/33291/15 "2023-09-28T22:01:26Z")

</div>

Not using rtk base, just need the H-rtk um982 gps onboard the drone as yaw/compass for magnetic interference reasons…

I have spent two long days of trying to get it working, using holybro docs settings for px4/Ardu spesific configurations, so i think i am using correct settings, but clearly not as it does not show true north…

Contacted Holybro support, but they only gave me theire reset procedure as a answer, even tho i clearly explained i had done that (even wrote the procedure to tell them what i did in my first email to Holybro)
