Prevent goal oscillation and unintended differential drive arcs

This commit is contained in:
DCCONSTRUCTIONS
2026-10-08 21:14:12 +03:00
parent 012286e972
commit 2e85d95c71
7 changed files with 120 additions and 20 deletions
@@ -21,6 +21,17 @@ PHASES = (
("resume", 3, 1, 0),
("final-hold", 3, 0, 0),
)
# Direct transitions intentionally omit an intervening safety-zero command.
# This isolates recovery from opposed tracks into straight translation.
TRANSITION_PHASES = (
("hold", 3, 0, 0),
("pivot-left", 8, 0, 0.35),
("exit-left", 6, 1, 0),
("hold-left", 3, 0, 0),
("pivot-right", 8, 0, -0.35),
("exit-right", 6, 1, 0),
("final-hold", 3, 0, 0),
)
CRITERIA = {
"translation_fraction_min": 0.5,
"turn_fraction_min": 0.45,