These hands-on lab challenges translate theoretical knowledge into verified physical robot behaviors. Each challenge includes clear pass/fail criteria and mentor inspection checkpoints.
Intro Activity: Intake Command Blocks
Section titled “Intro Activity: Intake Command Blocks”Start with the interactive intake command challenge to see how a trigger, command, and subsystem work together before moving on to the hardware labs.
Challenge 1: Bench Identification and Inversion Verification
Section titled “Challenge 1: Bench Identification and Inversion Verification”Target Stage: Stage 1: Hardware & Tuner X Equipment: Bench test-stand with 2 Talon FX motors and 1 CANcoder.
Objective:
Section titled “Objective:”Given an unconfigured test bench, assign unique CAN IDs and verify that positive control inputs produce forward mechanism motion.
Pass Criteria:
Section titled “Pass Criteria:”- Device IDs changed from factory default 0 to team assigned IDs.
- Talon FX status LED blinks green during positive command (+0.15 duty cycle).
- Motor moves mechanism in the physical “up” or “forward” direction.
- CANcoder reading increases in value as the mechanism is manually moved forward.
Challenge 2: Feedforward Measurement ( and )
Section titled “Challenge 2: Feedforward Measurement (kSkSkS and kVkVkV)”Target Stage: Stage 1: Hardware & Tuner X & Feedforward Handbook Equipment: Flywheel mechanism or test-stand motor.
Objective:
Section titled “Objective:”Accurately calculate and gains using Phoenix Tuner X without relying on feedback ().
Procedure:
Section titled “Procedure:”- In Tuner X Control tab, select Duty Cycle.
- Increment voltage by 0.05V until the motor shaft begins continuous rotation. Record this value as .
- Command 50% output (~6.0V). Read the steady-state velocity in rotations per second (
v_measured). - Calculate:
kV = (6.0V - kS) / v_measured - In the Slot 0 tab, configure and . Switch to Velocity Voltage mode and command 40 rot/s with .
Pass Criteria:
Section titled “Pass Criteria:”- Flywheel achieves within 5% of commanded velocity using feedforward alone.
- Steady-state error without is less than 2.5 rot/s.
Challenge 3: Arm Gravity Balance () and Motion Magic
Section titled “Challenge 3: Arm Gravity Balance (kGkGkG) and Motion Magic”Target Stage: Stage 1 & Stage 3 Equipment: Single-jointed arm with absolute CANcoder.
Objective:
Section titled “Objective:”Configure cosine gravity feedforward () so the arm holds its physical position horizontally without feedback, then configure smooth Motion Magic travel.
Pass Criteria:
Section titled “Pass Criteria:”- With , the arm holds steady at horizontal (0°) within ±3° using alone.
- Releasing the arm from 45° does not cause it to crash to the floor.
- In Motion Magic mode, the arm transitions smoothly between -10° and +90° without overshoot or mechanical shudder.
Challenge 4: Two-State Mechanism Command
Section titled “Challenge 4: Two-State Mechanism Command”Target Stage: Stage 2: Code Foundations & Stage 3: Mechanism Programming Equipment: VS Code WPILib Desktop Simulation or physical robot.
Objective:
Section titled “Objective:”Implement a Subsystem class with private hardware and write a Command that automatically intakes a game piece and stows upon capture.
Code Requirements:
Section titled “Code Requirements:”- Hardware handles (
TalonFX,CANcoder) must beprivate final. - Subsystem must configure stator current limits (40A) and soft limits.
- Command must use
.until()with current spike detection or beam-break sensing.
Challenge 5: Autonomous Multi-Piece PathPlanner Routine
Section titled “Challenge 5: Autonomous Multi-Piece PathPlanner Routine”Target Stage: Stage 4: Swerve & Autonomous Equipment: Swerve robot or WPILib Swerve desktop simulator.
Objective:
Section titled “Objective:”Design and execute an autonomous routine in PathPlanner that drives from the starting line, intakes a game piece using an Event Marker, drives to the scoring position, and fires into the goal.
Pass Criteria:
Section titled “Pass Criteria:”- Named commands properly registered before building auto routines.
- Robot finishes within 5 cm of the target pose.
- Total routine executes in under 15 seconds.
- Telemetry successfully logged to
.wpilogand visualized in AdvantageScope.
Mentor Assessment Rubric
Section titled “Mentor Assessment Rubric”| Category | Emerging (1) | Proficient (3) | Mastery (5) |
|---|---|---|---|
| Safety & Limits | Code lacks stator current or soft limits. | Soft limits configured, but current limits default. | Full stator & supply current limits, soft limits, and watchdog timeouts. |
| Control Tuning | Relies on high and without feedforward. | Uses estimated , but neglects and . | Measured ; ; smooth Motion Magic profiles. |
| Code Architecture | Hardware leaked to public scope; monolithic commands. | Subsystems encapsulated, but commands hardcoded. | Fully encapsulated subsystems, factory commands, and fluent compositions. |