-
Notifications
You must be signed in to change notification settings - Fork 0
RunIndexerCommand Command
danielbrownmsm edited this page Mar 18, 2020
·
2 revisions
The RunIndexerCommand
command runs the indexer (aka pass-through, ball sorter, jank, plate covering our PDP, etc.) at the specified speed.
frc.robot.commands.intake
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);
The command is rarely used, except when we need to unjam or feed in a bit to make space for more power cells