I solved the problem. It turns out that I magnetized the main compass - I disassembled and assembled the drone with a magnetic screwdriver. In the service there was a special device for demagnetizing (Cfixer). They helped me for free - demagnetized the main compass. Now I have no problems.
Hello pilots. My drone crashed. Has broken back beams. I made repairs myself. There was a problem. Now, after take-off, the compass error always appears. Where to look for the problem? What to do? Advise