mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-07-24 15:27:41 +08:00
wait_until_altitude() returns on the first touch of the target band while the vehicle is still climbing, so start_checking_altitude() latched the hold reference mid-climb. The normal takeoff overshoot (~0.24 m) and slow VTOL settle then exceeded the 0.15 m tolerance and the standard_vtol job failed intermittently. Wait for the overshoot to damp before capturing the reference, and restore the 0.2 m tolerance established in #26106 (a later SIH rewrite had tightened it back to 0.15 m). Steady-state hover holds to ~0.05 m, so the check stays sensitive to real altitude-hold failures. Signed-off-by: Jacob Dahl <dahl.jakejacob@gmail.com>