Henry WurzburgandClaude Opus 5 b3dcfec78a AC_Avoidance: correct OA_MARGIN_MAX description
The @Description gave OA_MARGIN_MAX the meaning of OA_BR_LOOKAHEAD,
saying object avoidance "will ignore objects more than this many meters
from vehicle". It is the opposite: it is the clearance the vehicle tries
to keep.

BendyRuler compares the candidate path's computed margin against it and
only accepts a path when the clearance exceeds it (AP_OABendyRuler.cpp
lines 177, 202, 281 and 303), and Dijkstra passes it to
set_fence_margin(). OA_BR_LOOKAHEAD is the parameter that limits how far
ahead obstacles are considered.

Users have hit this: ArduPilot/ardupilot_wiki#3099 asks which of the two
meanings is right, because the wiki correctly documents it as the
stand-off distance while the parameter description says the reverse.

Also update the two _margin_max member comments, which repeated the same
incorrect wording.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-30 16:44:42 +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

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%