mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-05 04:40:35 +08:00
rtl: reduce time estimate calculations
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user