AirspeedSelector: increase default of ASPD_WERR_THR #25225
+5
−5
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.
Solved Problem
The default is very low, leading to the ground-minus-wind airspeed approximation being declared invalid all the time.
Solution
Increase the default. And update the param meta data while on it.
I also consider removing the param and hard-code it.
Changelog Entry
For release notes:
Context
I got to the new default of 2m/s by looking at a bunch of logs from different vehicles and different conditions. Screenshots attached below. We generally want to not yet validate it right after init (the variance was around 6 there usually), and when on very long straight flight paths (see second screenshot).
The check is here, sqrt(variance_north + variance_east).
Note: since #24522 we have an alternative "synthetic" airspeed, based purely on the vehicle mode and the current thrust setpoint.