mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-22 14:19:57 +08:00
Return approximates an exclusion circle by an octagon. The octagon was drawn around the circle and the margin then added to its vertices, so its edges cleared the circle by only cos(pi/8), about 92 %, of the margin. Return flies along those edges. Grow the circle by the margin first and draw the octagon around that, as the comment above the code already says. Assisted-by: Claude:claude-fable-5-2