There are a couple of other factors to consider when determining if close proximity to a ship will cause a "compass issue".
The geomagnetic field is distorted by the ship. Some locations more than others. If the AC is between the ship and magnetic north the field direction is probably pretty accurate. Off to either side the field is bent more.
The other factor is due to the delay that magnetometer data has before Yaw is affected. Within a couple of secs after power up magnetometer data is used to initialize the Yaw value. After that it's mostly IMU data that determines Yaw with magnetometer data being used at low gain - i.e., there will be a delay in any effect caused by magnetometer data. Landing on a manhole cover is OK as long as it's quick. Spend some time hovering over the cover and the incorrect magnetometer data will cause Yaw to be compromised leading to erratic flight.
From @Fufar Visual 's description I get the impression that he had been flying around for a while in a distorted geomagnetic field - long enough for Yaw to be compromised.
The geomagnetic field is distorted by the ship. Some locations more than others. If the AC is between the ship and magnetic north the field direction is probably pretty accurate. Off to either side the field is bent more.
The other factor is due to the delay that magnetometer data has before Yaw is affected. Within a couple of secs after power up magnetometer data is used to initialize the Yaw value. After that it's mostly IMU data that determines Yaw with magnetometer data being used at low gain - i.e., there will be a delay in any effect caused by magnetometer data. Landing on a manhole cover is OK as long as it's quick. Spend some time hovering over the cover and the incorrect magnetometer data will cause Yaw to be compromised leading to erratic flight.
From @Fufar Visual 's description I get the impression that he had been flying around for a while in a distorted geomagnetic field - long enough for Yaw to be compromised.
I'm a little surprised by this. I would think it that it would take 30 secs or more before the magenetometer data could affect Yaw enough to see any erratic flight.......
Try it yourself sometime by descending toward a steel roof.
As you get closer, maybe 6 feet or so above the roof, you'll see the drone start to wander a little or slowly spiral.
That's the compass being affected by the magnetic field in the steel interfering with the compass reading of the earth's normal field.
Lift the drone a few feet higher and it hovers properly, lower it and you see the effect.
........