AP_Terrain: terrain offset max default to 30m #23176
Merged
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.
This increases the default terrain altitude's offset (aka TERRAIN_OFS_MAX) to 30m (from 15m).
To provide background, this is the maximum altitude that the terrain database will be shifted up or down to match the vehicle's altitude at takeoff. This shift happens at takeoff and is built on the assumption that the vehicle is taking off from the ground (e.g. not the top of a building).
The current 15m default is too strict (e.g. triggers too often under normal use) resulting in two problems:
I personally have seen the clamping message numerous times in Japan which has perfectly good GPS coverage and quality and using up-to-date vehicles with very commonly used, good quality GPSs. During a demo to a large number of people, the payload place demonstration failed because the vehicle flew 10m higher than it should have.