From 72087335f7205d705dee01c4ad2d93153193dc64 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 31 Jan 2022 15:35:06 +1100 Subject: [PATCH] Plane: removed terrain home correction --- ArduPlane/altitude.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ArduPlane/altitude.cpp b/ArduPlane/altitude.cpp index ce717a12b6..3ad2b2dfa3 100644 --- a/ArduPlane/altitude.cpp +++ b/ArduPlane/altitude.cpp @@ -628,8 +628,8 @@ void Plane::rangefinder_terrain_correction(float &height) return; } float terrain_amsl1, terrain_amsl2; - if (!terrain.height_amsl(current_loc, terrain_amsl1, false) || - !terrain.height_amsl(next_WP_loc, terrain_amsl2, false)) { + if (!terrain.height_amsl(current_loc, terrain_amsl1) || + !terrain.height_amsl(next_WP_loc, terrain_amsl2)) { return; } float correction = (terrain_amsl1 - terrain_amsl2);