# Calibrating both Compasses

**URL:** <https://forum.zubax.com/t/calibrating-both-compasses/64>\
**Category:** Sensors\
**Created:** [September 21, 2016, 5:47pm UTC](https://forum.zubax.com/t/calibrating-both-compasses/64 "2016-09-21T17:47:46Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![beatified](https://forum.zubax.com/letter_avatar_proxy/v4/letter/b/94ad74/32.png) [@beatified](https://forum.zubax.com/u/beatified)\
**Post date:** [September 21, 2016, 5:47pm UTC](https://forum.zubax.com/t/calibrating-both-compasses/64/1 "2016-09-21T17:47:46Z")

</div>

I have the V2 of the GPS and I am only able to calibrate the Pixhawk Compass. It seems that the Zubax GPS isn’t showing up during calibration. I have configured the settings in mission planner as described in the documentation.

Has anyone seen this problem and know how to fix it, or have any input for me to fix this issue?

Thanks,  
Stuart

---

<div class="post-metadata">

**Author:** ![pavel-kirienko](https://forum.zubax.com/user_avatar/forum.zubax.com/pavel-kirienko/32/180_2.png) [@pavel-kirienko](https://forum.zubax.com/u/pavel-kirienko)\
**Post date:** [September 21, 2016, 7:55pm UTC](https://forum.zubax.com/t/calibrating-both-compasses/64/2 "2016-09-21T19:55:45Z")

</div>

Hi Stuart,

Could you please post a screenshot of your MissionPlanner at the compass configuration page?

Also, how do you determine that the compass of Zubax GNSS is not being used by APM?

Thanks.

---

<div class="post-metadata">

**Author:** ![beatified](https://forum.zubax.com/letter_avatar_proxy/v4/letter/b/94ad74/32.png) [@beatified](https://forum.zubax.com/u/beatified)\
**Post date:** [September 22, 2016, 5:55pm UTC](https://forum.zubax.com/t/calibrating-both-compasses/64/3 "2016-09-22T17:55:42Z")

</div>

So here is the first screen shot.

 ![](https://forum.zubax.com/uploads/default/original/1X/99830af0764e11df06736ab179d0bb804bfdfcea.jpg)

---

<div class="post-metadata">

**Author:** ![beatified](https://forum.zubax.com/letter_avatar_proxy/v4/letter/b/94ad74/32.png) [@beatified](https://forum.zubax.com/u/beatified)\
**Post date:** [September 22, 2016, 5:56pm UTC](https://forum.zubax.com/t/calibrating-both-compasses/64/4 "2016-09-22T17:56:43Z")

</div>

And heres the second.

 ![](https://forum.zubax.com/uploads/default/original/1X/f3e1312eec86f2fce8c195f1ff861721fa06adf3.jpg)

---

<div class="post-metadata">

**Author:** ![pavel-kirienko](https://forum.zubax.com/user_avatar/forum.zubax.com/pavel-kirienko/32/180_2.png) [@pavel-kirienko](https://forum.zubax.com/u/pavel-kirienko)\
**Post date:** [September 22, 2016, 6:02pm UTC](https://forum.zubax.com/t/calibrating-both-compasses/64/5 "2016-09-22T18:02:07Z")

</div>

Uhm, it would appear to be a problem with ArduPilot. What version are you using?

---

<div class="post-metadata">

**Author:** ![beatified](https://forum.zubax.com/letter_avatar_proxy/v4/letter/b/94ad74/32.png) [@beatified](https://forum.zubax.com/u/beatified)\
**Post date:** [September 22, 2016, 6:03pm UTC](https://forum.zubax.com/t/calibrating-both-compasses/64/6 "2016-09-22T18:03:45Z")

</div>

While Calibrating I get the above screenshot. This what is making me think that only one compass is working.

---

<div class="post-metadata">

**Author:** ![beatified](https://forum.zubax.com/letter_avatar_proxy/v4/letter/b/94ad74/32.png) [@beatified](https://forum.zubax.com/u/beatified)\
**Post date:** [September 22, 2016, 6:05pm UTC](https://forum.zubax.com/t/calibrating-both-compasses/64/7 "2016-09-22T18:05:19Z")

</div>

3.4RC5 I believe its 3.4RC something for sure but not totally shure which ver of RC.

---

<div class="post-metadata">

**Author:** ![pavel-kirienko](https://forum.zubax.com/user_avatar/forum.zubax.com/pavel-kirienko/32/180_2.png) [@pavel-kirienko](https://forum.zubax.com/u/pavel-kirienko)\
**Post date:** [September 22, 2016, 6:13pm UTC](https://forum.zubax.com/t/calibrating-both-compasses/64/8 "2016-09-22T18:13:41Z")

</div>

Is there a chance to test this with an older version, perhaps RC1? This may be caused by a regression. If we’re able to confirm this, we’ll just open a ticket on the APM bug tracker and let them handle this. Also, can you please confirm whether I2C interfaced compasses work correctly? Thanks.

---

<div class="post-metadata">

**Author:** ![beatified](https://forum.zubax.com/letter_avatar_proxy/v4/letter/b/94ad74/32.png) [@beatified](https://forum.zubax.com/u/beatified)\
**Post date:** [September 26, 2016, 6:56pm UTC](https://forum.zubax.com/t/calibrating-both-compasses/64/9 "2016-09-26T18:56:11Z")

</div>

Ok Stupid me…  
I went ahead and took my copter outside and didn’t see any lock not even an attempt at locking.  
So I checked the documentation again and found that I had not set BRD\_CAN\_ENABLE to 2 as I needed to so it wasn’t even seeing the GPS.

I enabled that and at least got a lock and the Compass started showing up as it should.

Problem now is that the Pixhawk GPS is calibrating fine but the Zubax Compass is not with an error of something to the extents of Offsets too high.

It is mounted correctly with the arrow facing forward and in the same direction as the Pixhawk and rotation set to none.

I have tried setting the Yaw Rotation to something else with still no luck. Although I haven’t tried every option.

Has this been seen before am I missing something?

To understand a little better the points on the display are showing up outside the normal sphere where they show up on the Pixhawk Compass. In other words they are not showing up around the XYZ lines but rather outside of the XYZ lines.

---

<div class="post-metadata">

**Author:** ![pavel-kirienko](https://forum.zubax.com/user_avatar/forum.zubax.com/pavel-kirienko/32/180_2.png) [@pavel-kirienko](https://forum.zubax.com/u/pavel-kirienko)\
**Post date:** [September 27, 2016, 9:42pm UTC](https://forum.zubax.com/t/calibrating-both-compasses/64/10 "2016-09-27T21:42:12Z")

</div>

Interesting. I recall that there was at least one other user who also had external compass calibration issues with APM. IIRC they were resolved eventually by repeated recalibration. We never were able to reproduce these issues locally though. The problem could be caused by:

- Local magnetic field distortions, e.g. if there’s a power supply wire of sorts or a large ferrous structure nearby the compass.
- Invalid offset limits hard-coded in the firmware.
- Misconfigured rotation, although I understand that you already checked for that.

Maybe you could post some screenshots here that illustrate the problem? We could take them to the APM bug tracker and ask them to raise the thresholds, for instance.

---

<div class="post-metadata">

**Author:** ![beatified](https://forum.zubax.com/letter_avatar_proxy/v4/letter/b/94ad74/32.png) [@beatified](https://forum.zubax.com/u/beatified)\
**Post date:** [September 27, 2016, 10:39pm UTC](https://forum.zubax.com/t/calibrating-both-compasses/64/11 "2016-09-27T22:39:23Z")

</div>

![](https://forum.zubax.com/uploads/default/original/1X/8c8593a7c6a7e537dda614f223061569d89872c4.jpg)

---

<div class="post-metadata">

**Author:** ![beatified](https://forum.zubax.com/letter_avatar_proxy/v4/letter/b/94ad74/32.png) [@beatified](https://forum.zubax.com/u/beatified)\
**Post date:** [September 27, 2016, 10:40pm UTC](https://forum.zubax.com/t/calibrating-both-compasses/64/12 "2016-09-27T22:40:50Z")

</div>

![](https://forum.zubax.com/uploads/default/original/1X/551ba5860e1d30a152430ec4329dcdf308b5bacb.jpg)

---

<div class="post-metadata">

**Author:** ![pavel-kirienko](https://forum.zubax.com/user_avatar/forum.zubax.com/pavel-kirienko/32/180_2.png) [@pavel-kirienko](https://forum.zubax.com/u/pavel-kirienko)\
**Post date:** [September 28, 2016, 9:30am UTC](https://forum.zubax.com/t/calibrating-both-compasses/64/13 "2016-09-28T09:30:19Z")

</div>

Peculiar. Any chance you could show us also how the module is installed onto the airframe? If there’s a power conductor nearby or something that would explain a lot. Thanks.

---

<div class="post-metadata">

**Author:** ![beatified](https://forum.zubax.com/letter_avatar_proxy/v4/letter/b/94ad74/32.png) [@beatified](https://forum.zubax.com/u/beatified)\
**Post date:** [October 1, 2016, 7:03am UTC](https://forum.zubax.com/t/calibrating-both-compasses/64/14 "2016-10-01T07:03:01Z")

</div>

![](https://forum.zubax.com/uploads/default/original/1X/e865c1bbaccfbfd0c3a83efe02e789f880fd1ffe.jpg)

---

<div class="post-metadata">

**Author:** ![beatified](https://forum.zubax.com/letter_avatar_proxy/v4/letter/b/94ad74/32.png) [@beatified](https://forum.zubax.com/u/beatified)\
**Post date:** [October 1, 2016, 7:04am UTC](https://forum.zubax.com/t/calibrating-both-compasses/64/15 "2016-10-01T07:04:44Z")

</div>

![](https://forum.zubax.com/uploads/default/original/1X/fe32b0485d0683f9c37b1b1412812236213a1214.jpg)

---

<div class="post-metadata">

**Author:** ![pavel-kirienko](https://forum.zubax.com/user_avatar/forum.zubax.com/pavel-kirienko/32/180_2.png) [@pavel-kirienko](https://forum.zubax.com/u/pavel-kirienko)\
**Post date:** [October 10, 2016, 4:47pm UTC](https://forum.zubax.com/t/calibrating-both-compasses/64/16 "2016-10-10T16:47:47Z")

</div>

We’re currently investigating the issue, expect updates soon.

---

<div class="post-metadata">

**Author:** ![pavel-kirienko](https://forum.zubax.com/user_avatar/forum.zubax.com/pavel-kirienko/32/180_2.png) [@pavel-kirienko](https://forum.zubax.com/u/pavel-kirienko)\
**Post date:** [October 20, 2016, 7:06pm UTC](https://forum.zubax.com/t/calibrating-both-compasses/64/17 "2016-10-20T19:06:20Z")

</div>

Hi Stuart,

It took us forever to react, but it would appear that the problem is now fixed. Please upgrade your Zubax GNSS 2 with this firmware: [files.zubax.com/products/com.zubax.gnss/debug/](https://files.zubax.com/products/com.zubax.gnss/debug/) (the right file has extension \*.uavcan.bin).

Waiting eagerly for your results.
