From 3d646a26e2c031d9e9110becfddd984b54541dce Mon Sep 17 00:00:00 2001 From: Randy Mackay <rmackay9@yahoo.com> Date: Mon, 18 Apr 2016 20:42:48 +0900 Subject: [PATCH] AP_HAL_SITL: calls to terrain:height_amsl provide extrapolate and corrected params --- libraries/AP_HAL_SITL/SITL_State.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } }