Magnometer compensation

Hey all,

Does anyone know how to use the magnetometer compensation for magnetic fields produced by the cabling?
Every time I fly, the quad yaws in mid air to about -0.15 rad, which i believe is due to conflicting magnetic fields generated by the cables in flight.


Do you have a log that shows this?

Hi, according to the general knowledge of electronics, the power cable should be placed away from magnetic sensor as far as possible, and if a cable is shielded by metal foil or screen the electromagnetic field from it are decreased somewhat.