mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-07-23 01:01:06 +10:00
Update ML timeout handling and adjust distance threshold for path hops
This commit is contained in:
committed by
Enot (ded) Skelly
parent
32dc0fca22
commit
637e08d22c
@@ -879,7 +879,7 @@ List<_PathHop> _buildPathHops(
|
|||||||
previousPosition = resolvedPosition;
|
previousPosition = resolvedPosition;
|
||||||
}
|
}
|
||||||
// If the best candidate is much farther than the previous hop, it's likely not the correct match.
|
// If the best candidate is much farther than the previous hop, it's likely not the correct match.
|
||||||
if (lastDistance + bestDistance > 70000 &&
|
if (lastDistance + bestDistance > 50000 &&
|
||||||
candidates != null &&
|
candidates != null &&
|
||||||
candidates.isNotEmpty) {
|
candidates.isNotEmpty) {
|
||||||
i--;
|
i--;
|
||||||
|
|||||||
Reference in New Issue
Block a user