Three-Branch Autonomous Structure
Organize reusable autonomous branches without tying the pattern to one season.
Organize reusable autonomous branches without tying the pattern to one season.
In this lesson, you will:
A three-branch autonomous combines vision selection, several path options, and mechanism actions. The organization matters as much as the path math.
The robot should have a small menu of tested routines rather than a giant method full of copied path code. Common actions should be reused.
Create branch builders, common score/park actions, and one selector. Keep each path named for field intent.
CenterstageAuto.javaJava
Action selected = switch (propPosition) {
case LEFT -> leftBranchPath();
case RIGHT -> rightBranchPath();
default -> centerSpikePath();
};
Actions.runBlocking(new SequentialAction(selected, score(), park()));Copied paths drift apart. If one branch is fixed and others are not, the code becomes unreliable. Extract shared pieces.
Check your understanding before moving on.
Which result best demonstrates completion of “Three-Branch Autonomous Structure”?
Why record the test setup, prediction, and observed result?
0 of 2 answered
Mark this lesson complete — “Build a Full Road Runner Autonomous” is up next.