Skip to content
learnFRC.org
educator

Classroom Lab Challenges & Exercises

Hands-on student challenges, testing benchmarks, and mentor grading rubrics for preseason robotics programming workshops.

These hands-on lab challenges translate theoretical knowledge into verified physical robot behaviors. Each challenge includes clear pass/fail criteria and mentor inspection checkpoints.


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.

Given an unconfigured test bench, assign unique CAN IDs and verify that positive control inputs produce forward mechanism motion.

  • 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 (kSkS and kVkV)

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.

Accurately calculate kSkS and kVkV gains using Phoenix Tuner X without relying on feedback (kP=0kP = 0).

  1. In Tuner X Control tab, select Duty Cycle.
  2. Increment voltage by 0.05V until the motor shaft begins continuous rotation. Record this value as kSkS.
  3. Command 50% output (~6.0V). Read the steady-state velocity in rotations per second (v_measured).
  4. Calculate: kV = (6.0V - kS) / v_measured
  5. In the Slot 0 tab, configure kSkS and kVkV. Switch to Velocity Voltage mode and command 40 rot/s with kP=0kP = 0.
  • Flywheel achieves within 5% of commanded velocity using feedforward alone.
  • Steady-state error without kPkP is less than 2.5 rot/s.

Challenge 3: Arm Gravity Balance (kGkG) 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.

Configure cosine gravity feedforward (kGkG) so the arm holds its physical position horizontally without feedback, then configure smooth Motion Magic travel.

  • With kP=0kP = 0, the arm holds steady at horizontal (0°) within ±3° using kGkG 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.

Target Stage: Stage 2: Code Foundations & Stage 3: Mechanism Programming Equipment: VS Code WPILib Desktop Simulation or physical robot.

Implement a Subsystem class with private hardware and write a Command that automatically intakes a game piece and stows upon capture.

  • Hardware handles (TalonFX, CANcoder) must be private 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.

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.

  • 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 .wpilog and visualized in AdvantageScope.

CategoryEmerging (1)Proficient (3)Mastery (5)
Safety & LimitsCode lacks stator current or soft limits.Soft limits configured, but current limits default.Full stator & supply current limits, soft limits, and watchdog timeouts.
Control TuningRelies on high kPkP and kIkI without feedforward.Uses estimated kVkV, but neglects kSkS and kGkG.Measured kS,kV,kGkS, kV, kG; kI=0kI = 0; smooth Motion Magic profiles.
Code ArchitectureHardware leaked to public scope; monolithic commands.Subsystems encapsulated, but commands hardcoded.Fully encapsulated subsystems, factory commands, and fluent compositions.