Files
ardupilot/Tools
Thomas Watson 7f277b2eeb autotest: improve test.Plane.CompassLearnInFlight robustness
The test has always learned a marginal compass value (25-30, with
failure at 35) and since commit `a52f911b` it has usually failed on my
machine with a value of 40-45 presumably due to a small change in the
flight path. It also occasionally fails in CI with similar values;
presumably different machine speeds select a different part of the
flight during which learning occurs.

Fix the issue by flying a straight level path to allow time for the GSF
to converge, as that is used as the reference for learning according to
the code. This results in a learned value of 5-10 which is much closer
to the target and hopefully less sensitive to the particular machine.
2025-07-21 09:52:34 +10:00
..