Fixed-Wing Plane PX4 GPS Heading/Arming Issue (Pixhawk 2.4.8 & M8N GPS)
Hello everyone,
I’m working on a fixed-wing UAV project using a Pixhawk 2.4.8 running the PX4 firmware. I’ve completed all the necessary calibrations for the aircraft, but I’m encountering a strange issue related to the M8N GPS module and arming.
The Problem:
When the arrow on the M8N GPS module is pointing forward (towards the nose) of the aircraft (the correct physical orientation), the plane will not arm.
However, if I rotate the GPS module 180 degrees so that the arrow is pointing backward (towards the tail), the plane arms successfully and is ready for flight modes.
This suggests that the flight controller is reading the GPS heading/orientation 180 degrees off from its physical setup when it’s correctly mounted.
My Questions:
What is the correct PX4 parameter (e.g., CAL_MAGn_ROT, SENS_GPS_ROT, or similar) that needs to be changed to correct this 180-degree yaw offset for the GPS?
Could this be an issue with the compass orientation within the GPS module, and if so, how do I correct the external compass orientation in PX4?
Are there any known issues with the Pixhawk 2.4.8 / M8N / PX4 combination that could cause this?
Any guidance on which parameter to adjust to correctly align the GPS heading without physically turning the module 180 degrees would be greatly appreciated!
Thank you!