# Kakute H7 - weird external compass orientation

**URL:** <https://discuss.px4.io/t/kakute-h7-weird-external-compass-orientation/39703>\
**Category:** PX4 Autopilot\
**Created:** [July 15, 2024, 9:38am UTC](https://discuss.px4.io/t/kakute-h7-weird-external-compass-orientation/39703 "2024-07-15T09:38:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel\_Hert](https://discuss.px4.io/user_avatar/discuss.px4.io/daniel_hert/32/13331_2.png) [@Daniel\_Hert](https://discuss.px4.io/u/Daniel_Hert)\
**Post date:** [July 15, 2024, 9:38am UTC](https://discuss.px4.io/t/kakute-h7-weird-external-compass-orientation/39703/1 "2024-07-15T09:38:54Z")

</div>

Hello! I have a small 5in drone, running Kakute H7 1.3 with PX4 v1.13.2.  
I connected an external GPS with magnetometer - Holybro M8N.

 ![screen_kakute](https://discuss.px4.io/uploads/default/original/3X/e/6/e6f036cf8bfc4024f0ad1a1969cf362bf7af3405.png)

I have aligned the arrow on the GPS and on Kakute, they both point forwards.  
I have calibrated all the sensors, and I got unusable Position control mode, with lots of whirpooling etc.

So I did a little bit of investigation, and it seems that with the default rotation parameters: ACC\_ROT and GYRO\_ROT are Internal, MAG0\_ROT is no\_rotation, the compass is very much misaligned.

I did some testing and comparisons with working compass on my phone, and I figured that if I set CAL\_MAG0\_ROT to: Pitch 180°, Yaw 270°, the compass is aligned, I can fly in Position mode normally with no issues or whirpooling.

Why is that? I use the same M8N with other drones running Pixhawk 6C/6X with the same FW version, and none have this issue.

---

<div class="post-metadata">

**Author:** ![iftahnaf](https://discuss.px4.io/user_avatar/discuss.px4.io/iftahnaf/32/5894_2.png) [@iftahnaf](https://discuss.px4.io/u/iftahnaf)\
**Post date:** [September 5, 2024, 12:16pm UTC](https://discuss.px4.io/t/kakute-h7-weird-external-compass-orientation/39703/2 "2024-09-05T12:16:22Z")

</div>

Thanks for the post.  
We don’t have any clear answer, but we encountered the same problem with the Kakute H7 v1.3, PX4 1.14.3, and the Holybro M10 Micro GPS (with the IST8310 magnetometer).

Both the flight controller and GPS sensor were aligned, but the heading was unstable(and wrong).

Setting **CAL\_MAG0\_ROT** to Pitch 180° and Yaw 270° solved the problem.
