With my configuration GPS and baro are working fine but I always get–even after running through the whole calibration process–“Mag sensors inconsistent”. Seems that I have to choose the right orientation of the Zubax one–what´s the right one?
The right orientation is when the arrow labeled
FORWARD is pointed in the same direction as the autopilot, and the top (the antenna) is also pointed in the same direction as the autopilot. Since the patch antenna should be pointing up for optimal performance of the GNSS receiver, the autopilot shall always be oriented likewise.
I have had the same problem lately and i have been days on the prob trying to solve it.
I notice one very very important thing. Make sure the surface the unit is bolted on is perfectly flat!!
If it is not the compass can do all sort of strange things. To check what i am talking about you can try to gently pull up the front left corner after unbolting just that corner and if you have your magnetometer connected to the FC and to Mission planner you can see EKF going mad and compass variance and or mag inconsistent appear.
Hi Pavel, thank you that´s now clear. But there seems to be another problem that the UAVCAN-magnetometer calibration within PX4 seems to be broken https://github.com/PX4/Firmware/issues/10621 . Can you take a look there and give me some hints, from the PX4 guys there does not seem to be much interest, so that I could fix that myself?
Eh, nothing comes to mind, but I will make sure to post if that changes. It’s been just four days though, so maybe somebody gets around to answer it. Otherwise you might have to fix PX4 yourself.