Skip to content
learnFRC.org
programmingmodule100 min

Stage 06 - Advanced Control & Telemetry

Command compositions, timeouts, safety seatbelts, state machines, and high-performance AdvantageScope telemetry.

What you will learn

  • Compose sequential, parallel, race, and deadline command groups.
  • Implement deterministic superstructure state machines using Java enums.
  • Record high-frequency telemetry using WPILib DataLogManager and URCL.
  • Analyze match logs and replay robot physics in AdvantageScope.

Prerequisites:Stage 05 - Vision Systems & Field Localization

Complex robot architectures require coordinating multiple mechanisms simultaneously: deploying an intake while an elevator ascends, timing shooter feed wheels to match flywheel surface speed, and logging telemetry for post-match analysis.

Stage 6 covers advanced command compositions, superstructure state machines, and competition data logging with AdvantageScope.

Modern FRC programming replaces brittle multi-flag state logic with declarative command compositions:

[ Trigger: Score High ] --> Commands.sequence(
├── Commands.parallel(ArmMove, ElevatorAscend),
├── WaitUntil(FlywheelAtSpeed),
├── FeedWheelsRun.withTimeout(0.5s),
└── Commands.parallel(ArmStow, ElevatorStow)
)
  1. Deterministic Execution: Every step starts only after the previous step meets its completion criteria.
  2. Built-in Cancellation: If the driver releases the button midway through the sequence, all active mechanisms cancel and return safely to their default commands.
  3. Safety Fallbacks: Every step is bounded by explicit timeouts.

Verified Sources & Standards

Evergreen Standard Verified: Sep 25, 2026

Lessons