From 89844625b4eab6f2be232a952cbf4c079e6125ab Mon Sep 17 00:00:00 2001 From: Konrad Date: Fri, 8 Mar 2024 14:41:12 +0100 Subject: [PATCH] rtl: reduce time estimate calculations --- src/modules/navigator/rtl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/navigator/rtl.cpp b/src/modules/navigator/rtl.cpp index f039c42832..a81896cb38 100644 --- a/src/modules/navigator/rtl.cpp +++ b/src/modules/navigator/rtl.cpp @@ -202,10 +202,10 @@ void RTL::on_inactive() break; } - // Limit inactive calculation to 1Hz + // Limit inactive calculation to 0.5Hz hrt_abstime now{hrt_absolute_time()}; - if ((now - _destination_check_time) > 1_s) { + if ((now - _destination_check_time) > 2_s) { _destination_check_time = now; setRtlTypeAndDestination();