mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-06 19:00:27 +08:00
Restores the pre-PR latch: takeoff_expected is set while armed and land_complete and only cleared by the release check, so an altitude release is not undone by a later dip below GNDEFF_ALT and modes that disable it (THROW) never see it in the air. Also clamps GNDEFF_TMO before the unsigned conversion, only trusts the takeoff XY anchor for the drift gate when it was captured with a valid horizontal position, and renames the drift define to say it is a NE distance.