• FRC Game Manual
  • FRC Game Q&A
  • 2014 CS Archive
FIRST Robotics Competition Logo
151

Programming and Electrical Basics

  • Getting Started
  • Getting Started with a Benchtop Robot

WPILib Programming Basics

  • What is WPILib?
  • 2020 Overview
  • VS Code Overview
  • FRC LabVIEW Programming
  • Actuators
  • Sensors
  • CAN Devices
  • Basic Programming
  • Support Resources

API Docs

  • WPILib Java API Docs
  • WPILib C++ API Docs

WPILib Software Tools

  • Driver Station
  • Shuffleboard
  • SmartDashboard
  • PathWeaver
  • RobotBuilder
  • Robot Simulation
  • Robot Characterization

WPILib Advanced Programming

  • Vision Processing
  • Command-Based Programming
    • 2020 Command-Based Rewrite: What Changed?
    • What Is “Command-Based” Programming?
    • Creating a Robot Project
    • Subsystems
    • Commands
    • Command Groups
    • The Command Scheduler
    • Binding Commands to Triggers
    • Structuring a Command-Based Robot Project
    • Convenience Features
    • PID Control through PIDSubsystems and PIDCommands
    • Motion Profiling through TrapezoidProfileSubsystems and TrapezoidProfileCommands
    • Combining Motion Profiling and PID in Command-Based
    • A Technical Discussion on C++ Commands
  • [Old] Command Based Programming
  • Kinematics and Odometry
  • NetworkTables
  • roboRIO
  • Advanced Controls

WPILib Examples and Tutorials

  • WPILib Example Projects
  • Trajectory Tutorial

WPILib Hardware

  • Hardware - Basics
  • Hardware Tutorials
  • Sensors
  • Kit of Parts Hardware
  • Robot Quick Build
  • Sensors

Robot Networking

  • Networking Introduction
  • Networking Utilities

Contributing

  • Contributing to frc-docs
  • Contributing to WPILib

Issues

  • Report an Issue
FIRST Robotics Competition
  • »
  • Command-Based Programming
  • Edit on GitHub

Command-Based Programming¶

This sequence of articles serves as an introduction to and reference for the WPILib command-based framework.

For a collection of example projects using the command-based framework, see Command-Based Examples.

  • 2020 Command-Based Rewrite: What Changed?
  • What Is “Command-Based” Programming?
  • Creating a Robot Project
  • Subsystems
  • Commands
  • Command Groups
  • The Command Scheduler
  • Binding Commands to Triggers
  • Structuring a Command-Based Robot Project
  • Convenience Features
  • PID Control through PIDSubsystems and PIDCommands
  • Motion Profiling through TrapezoidProfileSubsystems and TrapezoidProfileCommands
  • Combining Motion Profiling and PID in Command-Based
  • A Technical Discussion on C++ Commands
Next Previous

© Copyright 2020, FIRST Revision c86dacc3.

Built with Sphinx using a theme provided by Read the Docs.