Files
ardupilot/libraries/AP_Common
javid 586773e900 AP_Common: add SITL check for matching alt frame in linearly_interpolate_alt
linearly_interpolate_alt() interpolates altitude between two Location
endpoints and only produces meaningful results when both endpoints
share an alt frame; mixing frames produces nonsense altitudes.

Add a SITL-only panic at the top of the function so the contract is
checked for every caller (BendyRulerHorizontal and Dijkstras path
handling in AC_WPNav_OA, plus any future callers), as suggested by
IamPete1 in code review.

Fixes #32926
2026-05-20 10:35:41 +10:00
..
…
…
…
…
…
…
…
…
…