Skip to content
learnFRC.org
static

Contribution Guide

Standards, requirements, and best practices for contributing to the FRC Programming Workshop curriculum and code snippet library.

The FRC Programming Workshop is an open-source educational resource maintained by mentors, students, and alumni to document robotics engineering standards across FRC.

All contributions must follow three core tenets:

  1. Modern WPILib & Hardware Alignment: Target modern WPILib releases and official vendor APIs (CTRE Phoenix 6, REVLib, Limelight, PathPlanner).
  2. Pedagogical Integrity (“Bench to Autonomous”): Verify physical hardware and CAN bus integrity before writing code; explain why systems work, separating feedforward from feedback.
  3. Safety First: Every motor and mechanism code sample must include stator current limits, software limits, and safe default states.

When submitting new mechanism examples or tutorial snippets:

Always use the WPILib Units library (edu.wpi.first.units.*) instead of raw double parameters:

// Recommended: Explicitly typed units
public void setElevatorHeight(Distance targetHeight) { ... }
// Discouraged: Ambiguous unit
public void setElevatorHeight(double height) { ... }

Every mechanism subsystem must:

  • Declare all hardware handles as private final.
  • Configure stator current limits (e.g. 40A on Krakens/Falcons/NEOs) and supply current limits.
  • Set forward and reverse soft limits to prevent mechanical crashes.
  • Provide a default command (e.g., hold position or stop motor).
  • Publish diagnostic telemetry inside periodic().
Current Limits are Mandatory

Pull requests containing mechanism code without stator current limits will not be approved. Protecting hardware and preventing battery brownouts is our top priority.


  1. Fork the Repository: Create a feature branch with a descriptive name (e.g., feat/wrist-code-snippet or docs/feedforward-visuals).
  2. Develop & Test Locally:
    Terminal window
    pnpm install
    pnpm dev
  3. Run Production Build Verification:
    Terminal window
    pnpm build
    Ensure zero Astro, MDX, or TypeScript compile errors.
  4. Submit Your PR: Describe the background, reference teams or CAD models where the mechanism was tested, and link related issues.