Peter BarkerandClaude Opus 5 c5040e778a Tools: autotest: add Copter AirModeStabZeroThrottle and AirModeLanding tests
AirModeStabZeroThrottle flies the scenario from a bug report of air-mode not
working when armed with the ARMDISARM_AIRMODE switch: hover in STABILIZE,
check the pilot has roll control, then drop the throttle to zero and check the
vehicle holds attitude against a SIM_TWIST disturbance while descending.  Note
ATC_THR_MIX_MAN defaults to the same value as ATC_THR_MIX_MIN, so the test
raises it; otherwise there is no attitude authority to lose at zero throttle
and the test cannot see the difference.

AirModeLanding checks the land detector does not call a landing in mid-air
when the throttle stick is at zero in air-mode.  An updraft just over terminal
velocity holds the vehicle in equilibrium, so every land-detector check says
"landed" and only its timeout is left; the trigger is timed from the onboard
log because MAVLink timing cannot separate LAND_DETECTOR_TRIGGER_SEC (1s) from
LAND_AIRMODE_DETECTOR_TRIGGER_SEC (3s).

Both run for air-mode from the AIRMODE aux switch and from arming with the
ARMDISARM_AIRMODE switch.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-04 10:38:06 +09:00
2026-07-29 07:06:37 +09:00
…
2026-07-21 16:58:03 +09: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

OpenSSF Best Practices

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%