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
2025-07-18 13:42:04 +09:00
2025-07-18 13:42:07 +09:00
…
2025-07-12 23:06:33 -05:00
2025-07-18 13:42:02 +09:00
…
…
2025-06-07 15:13:13 +10:00
…
…

ArduPilot Project

Discord

Test Copter Test Plane Test Rover Test Sub Test Tracker

Test AP_Periph Test Chibios Test Linux SBC Test Replay

Test Unit Teststest size

Test Environment Setup

Cygwin Build Macos Build

Coverity Scan Build Status

Test Coverage

Autotest Status

ArduPilot is the most advanced, full-featured, and reliable open source autopilot software available. It has been under development since 2010 by a diverse team of professional engineers, computer scientists, and community contributors. Our autopilot software is capable of controlling almost any vehicle system imaginable, from conventional airplanes, quad planes, multi-rotors, and helicopters to rovers, boats, balance bots, and even submarines. It is continually being expanded to provide support for new emerging vehicle types.

The ArduPilot project is made up of:

User Support & Discussion Forums

Developer Information

Top Contributors

How To Get Involved

License

The ArduPilot project is licensed under the GNU General Public License, version 3.

Maintainers

ArduPilot is comprised of several parts, vehicles and boards. The list below contains the people that regularly contribute to the project and are responsible for reviewing patches on their specific area.

Languages
C++ 62.3%
Python 17.7%
C 10%
Lua 4.8%
C# 2.1%
Other 2.7%