After a flight, right after the landing, I’m getting “PreArm: EKF compass variance” and the pixhawk won’t arm again - Meaning I need to take out the battery between flights.
This problem reproduces on every flight.
What could be the issue? Where should I look to debug this?
A log file is attached
I seem to have missed a key point in the log here - There is a big mismatch between the 2 compasses Z values.
The external compass (compass 1) gets a constant error after the engines start.
(See Mag.MagZ vs Mag2.MagZ vs ThrOut)
I don’t think it’s a Compass-Motor mag field problem because the log shows a (big) constant error and not a disturbance
The compass in this build is not elevated above the quad (on the same plane as the motors, in the middle of the quad. The quad is 550mm diagonal), however I don’t remember ever having this problem.
Yes - It was a compass-motor interference after all. Recalibrating the CompassMot parameters fixed it.
To be on the safe side, I’ve moved the compass to a pole (elevated from the motors plane) so it’s farther away from the motors.
Now I’m having an external GPS/Compass module, which is installed away from the motors already. So may be I just have to disable the internal compass somehow?
Also, with which software you did that calibration, QGroundControl/APM Planner/Mission Planner?
I’ve used Mission Planner.
There shouldn’t be a problem with your internal compass still on. Just
calibrate them together and make sure your pixhawk orientation is set
correctly (AHRS_ORIENTATION)
If that doesn’t work, could you take a picture of your setup on attach a
log file?