A metal screw within 1cm will completely mess up your readings. So I'm guessing magnets should be at least 5cm away.
Even at that distance I suspect it will have an impact but I hope the magnetometer offset nulling in the code will correct for the problem within a few minutes of flight (or of you waving your plane around). I should mention that I'm a heli person with not much experience of the plane code but the libraries are shared and the code in general is quite similar.
don't know if this helps... you should be able to use the groundstation to test if you are getting full rotations from the compass when you manually turn the plane. try turning the plane when it is at a few different angles.
Replies
A metal screw within 1cm will completely mess up your readings. So I'm guessing magnets should be at least 5cm away.
Even at that distance I suspect it will have an impact but I hope the magnetometer offset nulling in the code will correct for the problem within a few minutes of flight (or of you waving your plane around). I should mention that I'm a heli person with not much experience of the plane code but the libraries are shared and the code in general is quite similar.
don't know if this helps... you should be able to use the groundstation to test if you are getting full rotations from the compass when you manually turn the plane. try turning the plane when it is at a few different angles.