Servers by jDrones

CUAV Pixhack v5 internal compass not calibrating


(StefT) #1

Hi Everyone,

I am having trouble to calibrate the internal compass. When selecting compass 1 and compass 2 as internal and external respectively, compass calibration fails every time. If I select only the external compass, which is the gps/compass module, calibration is fine. How do I check if the hardware is working or if it might be a bug?

Thank you.


(Jakob Schmidt) #2

It can be a real pain and while I try on new builds, I usually end up just using the external compass.
Basically, the internal compass will be so close to the frame, motor and various other electronics that it’ll be near impossible to get a reliable calibration.


(anon67614380) #3

Starting to think why they all put magnetometers inside boards if they are nearly impossible to use and cause just pain and confusion when doing calibration…


(mlebret) #4

On board or Off board, you still have to be cautious.

Exemple 1: years ago, it was a ZeroUAV card with external compass-GPS

I was not able to calibrate, guess what? I had the GPS puck over a 3mm steel screw…

Exemple 2: an equivalent PX4 card, mag on board, on the frame with Battery cable loop below, bad calibration results as expected, without loop, it is better.

Exemple 3: a modern card with no compass on board, and 2 compass on the GPS puck, no problems if you are cautious with GPS placement.

Exemple 4: …

There are as many situations as users. We have to be cautious with our installation and settings. Good results can be obtained with moderate cost hardware and bad results with hight end products. Clever action should produce good result.

Marc


(anon67614380) #5

My point was that since almost all internal magnetometers are nearly unusable and these days nobody uses them, why they keep on putting them on.


(mlebret) #6

Because, at some points, APM and PX4 creators did it and followers have no clue or do not want to invest money and manpower to undo that. Chip makers are also involved, by producing compound products (Gyro, Acc and Compass in the same chip).

Marc


(Dave) #7

True but those IMU’s are targeted primarily at Smartphones, Tablets, etc so we gain by being able to use relatively cheap devices. But it sure is true that internal mags are mostly useless. I had one Plane where the mag was usable, but Copters no way. Plus, there really is no redundancy function in Ardupilot to switch mags so there isn’t much point in enabling them anyway.


(StefT) #8

Thanks for the feedback. Mission Planner goes into an endless loop trying to calibrate the sensor. I end up by completely disable it and only use the external sensor.

On my Navio+ I just stop trying to get the compass right. It calibrate correctly but once I start flying, I get the dreaded compass variance error. I have been flying like this for over a year.