rtl: reduce time estimate calculations

This commit is contained in:
Konrad 2024-03-08 14:41:12 +01:00 committed by Silvan Fuhrer
parent fde71cd15e
commit 89844625b4
1 changed files with 2 additions and 2 deletions

View File

@ -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();