HAL_SITL: don't use terrain adjustment

This commit is contained in:
Andrew Tridgell 2022-03-28 08:27:33 +11:00
parent 8c026ec701
commit 8d6bfac43c
1 changed files with 1 additions and 1 deletions

View File

@ -906,7 +906,7 @@ void SITL_State::set_height_agl(void)
AP_Terrain *_terrain = AP_Terrain::get_singleton();
if (_terrain != nullptr &&
_terrain->height_amsl(location, terrain_height_amsl)) {
_terrain->height_amsl(location, terrain_height_amsl, false)) {
_sitl->height_agl = _sitl->state.altitude - terrain_height_amsl;
return;
}