fix(ground-ai): escalate repeated contacts with vehicles and wrecks
A bot pressed against the same wreck or stopped vehicle backed off, planned the same path again and drove into it once more, every few seconds for minutes, because a contact reset the stuck watch and left no trace for path searches. A second contact within pathFollow.contactRepeatSec near the same place now marks the body for path searches and switches the passing side; after unstickMaxAttempts repeats the bot gives its order up and the place is avoided like any other unreachable spot. NAV_CONTACT logs the repeat count and the body position.
This commit is contained in:
1 parent
413bd55c54
commit
58fde2030c
11 files changed
+61
-13
No files matched your search
@@ -246,6 +246,7 @@ function readPathFollowSection(pf: TuningReader): GroundAiPathFollow {
|
||||
blockTtlSec: n('blockTtlSec', 3, 120),
|
||||
contactGapM: n('contactGapM', 0.2, 3),
|
||||
contactReverseSec: n('contactReverseSec', 0.3, 5),
|
||||
contactRepeatSec: n('contactRepeatSec', 3, 120),
|
||||
stuckWindowSec: n('stuckWindowSec', 1, 15),
|
||||
stuckMinProgressM: n('stuckMinProgressM', 0.2, 10),
|
||||
unstickReverseM: n('unstickReverseM', 2, 25),
|
||||
|
||||
Reference in new issue
Block a user