From 6dc843b3418eeb0aa4660fe5f80ead0aaf3b498d Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 31 Jan 2022 15:35:06 +1100 Subject: [PATCH] AP_Common: removed terrain home correction --- libraries/AP_Common/Location.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Common/Location.cpp b/libraries/AP_Common/Location.cpp index 92a86ebc23..983d43813b 100644 --- a/libraries/AP_Common/Location.cpp +++ b/libraries/AP_Common/Location.cpp @@ -140,7 +140,7 @@ bool Location::get_alt_cm(AltFrame desired_frame, int32_t &ret_alt_cm) const if (terrain == nullptr) { return false; } - if (!terrain->height_amsl(*this, alt_terr_cm, true)) { + if (!terrain->height_amsl(*this, alt_terr_cm)) { return false; } // convert terrain alt to cm