Files
PX4-Autopilot/src
Jonas Perolini 5729cf1e3d fix(geofence): keep the Return margin along approximated circle edges (#29884)
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
2026-11-19 11:39:57 +01:00
..