Skip to content

RunIndexerCommand Command

danielbrownmsm edited this page Mar 18, 2020 · 2 revisions

Overview

The RunIndexerCommand command runs the indexer (aka pass-through, ball sorter, jank, plate covering our PDP, etc.) at the specified speed.

Package

frc.robot.commands.intake

Constructor

The constructor for the RunIndexerCommand command has two arguments, the intake subsystem and a double representing the power at which you would like to run it. It does this by calling the intake's runIndexer(power) method. Examples shown below.

RunIndexerCommand indexerForward = new RunIndexerCommand(1);

RunIndexerCommand unjam = new RunIndexerCommand(-1);

Usage

The command is rarely used, except when we need to unjam or feed in a bit to make space for more power cells

Clone this wiki locally