# M500 heading issues

Source: https://forum.modalai.com/topic/1939/m500-heading-issues
Category: General Questions (https://forum.modalai.com/category/2/general-questions)
Posted: 2023-03-13 14:22:18 UTC by KeeganBarrett
Replies: 3 · Views: 786

## KeeganBarrett · 2023-03-13 14:22:18 UTC

With one of our M500 drones with the VOXL flight deck is having heading issues. The vehicle is reporting a heading that is around 90 degrees off from where it should be.
No amount of compass calibrations would rectify this, and there are no ferrous obstructions near the compass that would interfere. Any ideas as to what could be causing this issue? 

Here is a link to a flight: https://drive.google.com/file/d/1Qpf8b7SfiQASRapk-oUV_BNncVn3OTNh/view?usp=share_link

## Reply by Chad Sweet (ModalAI staff) · 2023-03-13 14:31:14 UTC

The Holybro GPS module has the magnetometer rotated

Any chance the Mag rotation parameter was changed on accident?

See the factory parameters here: https://gitlab.com/voxl-public/flight-core-px4/px4-parameters/-/tree/master/platforms/v1.13/M500

## Reply by KeeganBarrett · 2023-03-13 15:07:43 UTC (in reply to Chad Sweet)

@Chad-Sweet Looks like it was set to "no rotation." So it looks like the parameter had been changed accidentally. Looking at the parameter list, do I set the orientation to 10 or 6?

## Reply by Chad Sweet (ModalAI staff) · 2023-03-13 15:14:42 UTC

Please refer to the M500 factory parameters here: https://gitlab.com/voxl-public/flight-core-px4/px4-parameters/-/tree/master/platforms/v1.13/M500
