diff --git a/libraries/AP_HAL_SITL/SITL_State.cpp b/libraries/AP_HAL_SITL/SITL_State.cpp index 5f46938957..4650a3922a 100644 --- a/libraries/AP_HAL_SITL/SITL_State.cpp +++ b/libraries/AP_HAL_SITL/SITL_State.cpp @@ -487,7 +487,7 @@ float SITL_State::height_agl(void) location.lat = _sitl->state.latitude*1.0e7; location.lng = _sitl->state.longitude*1.0e7; - if (_terrain->height_amsl(location, terrain_height_amsl)) { + if (_terrain->height_amsl(location, terrain_height_amsl, false)) { return _sitl->state.altitude - terrain_height_amsl; } }