Prevent goal oscillation and unintended differential drive arcs
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user