From a617e9c54b70970426b9b35aaddb2cf31467e00d Mon Sep 17 00:00:00 2001 From: Silvan Fuhrer Date: Fri, 30 Jun 2023 12:08:19 +0200 Subject: [PATCH] Navigator RTL: run find_RTL_destination() only on_inactive Signed-off-by: Silvan Fuhrer --- src/modules/navigator/rtl.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/modules/navigator/rtl.cpp b/src/modules/navigator/rtl.cpp index 2a94c90619..e17634ada5 100644 --- a/src/modules/navigator/rtl.cpp +++ b/src/modules/navigator/rtl.cpp @@ -322,9 +322,8 @@ void RTL::on_active() rtl_time_estimate_s rtl_time_estimate{}; rtl_time_estimate.valid = false; - // Calculate RTL destination and time estimate only when there is a valid home and global position + // Calculate time estimate only when there is a valid home and global position if (_navigator->home_global_position_valid() && global_position_recently_updated) { - find_RTL_destination(); calcRtlTimeEstimate(_rtl_state, rtl_time_estimate); rtl_time_estimate.valid = true; }