mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-13 02:54:09 +08:00
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.