autotest: let the takeoff settle before DO_CHANGE_ALTITUDE asserts - #34082
Open
peterbarker wants to merge 1 commit into
Open
autotest: let the takeoff settle before DO_CHANGE_ALTITUDE asserts#34082peterbarker wants to merge 1 commit into
peterbarker wants to merge 1 commit into
Conversation
The test takes off to 30m and immediately asserts 30m +-1m held for 10s within 60s. TAKEOFF hands back to TECS 2m below the target while the vehicle is still climbing at 9.3m/s, so it overshoots to about 40m, sinks to 26.5m and takes some 25s to settle - and the assertion was paying for that transient out of its own budget, using 34s of the 60. Three runs in 26 overnight ran out of time and reported an altitude on the way back up, which is why the failures were always just below the band and never above it. Wait for the vehicle to be established first. Measured over three runs: +-2m held for 5s completes 25s after the handover. A shorter hold is no use - +-2m for 2s is satisfied after 7s by the climb passing through the band on its way up, while still 10m from settled. The overshoot itself is a vehicle-side regression, traced to three commits between August 2024 and April 2025; this only stops the test tripping over it. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Hacks in a settle period for DO_CHANGE_ALTITUDE's takeoff step. TECS causes the Plane to overshoot its 30m target by 11m. That was 1.5m in 2024.
Classification & Testing (check all that apply and add your own)
Description
The test takes off to 30m and immediately asserts 30m +-1m held for 10s within 60s. TAKEOFF hands back to TECS 2m below the target while the vehicle is still climbing at 9.3m/s, so it overshoots to about 40m, sinks to 26.5m and takes some 25s to settle - and the assertion was paying for that transient out of its own budget, using 34s of the 60. Three runs in 26 overnight ran out of time and reported an altitude on the way back up, which is why the failures were always just below the band and never above it.
Wait for the vehicle to be established first. Measured over three runs: +-2m held for 5s completes 25s after the handover. A shorter hold is no use - +-2m for 2s is satisfied after 7s by the climb passing through the band on its way up, while still 10m from settled.
The overshoot itself is a vehicle-side regression, traced to three commits between August 2024 and April 2025; this only stops the test tripping over it.
Some analysis of the overshoot. The regression from 2024 actually came in multiple tranches.