Class IdleIndexerCommand
java.lang.Object
edu.wpi.first.wpilibj2.command.Command
frc.robot.shared.commands.AbstractSubsystemCommand<TSubsystem>
frc.robot.shared.commands.AbstractIdleVelocityCommand<IndexerSubsystem>
frc.robot.subsystems.indexer.commands.IdleIndexerCommand
- All Implemented Interfaces:
edu.wpi.first.util.sendable.Sendable
Default command that maintains the indexer at the configured idle RPM (typically 0 to keep the roller stopped).
Set this as the default command so the indexer stays stopped when no feed, hold, or unjam command is running. The command never finishes on its own and stops the motor when interrupted.
-
Nested Class Summary
Nested classes/interfaces inherited from class edu.wpi.first.wpilibj2.command.Command
edu.wpi.first.wpilibj2.command.Command.InterruptionBehavior -
Field Summary
Fields inherited from class frc.robot.shared.commands.AbstractSubsystemCommand
log, subsystem -
Constructor Summary
ConstructorsConstructorDescriptionIdleIndexerCommand(IndexerSubsystem subsystem) Creates an idle command for the indexer. -
Method Summary
Methods inherited from class frc.robot.shared.commands.AbstractIdleVelocityCommand
end, execute, isFinished, onInitializeMethods inherited from class frc.robot.shared.commands.AbstractSubsystemCommand
initializeMethods inherited from class edu.wpi.first.wpilibj2.command.Command
addRequirements, addRequirements, alongWith, andThen, andThen, asProxy, beforeStarting, beforeStarting, cancel, deadlineFor, deadlineWith, finallyDo, finallyDo, getInterruptionBehavior, getName, getRequirements, getSubsystem, handleInterrupt, hasRequirement, ignoringDisable, initSendable, isScheduled, onlyIf, onlyWhile, raceWith, repeatedly, runsWhenDisabled, schedule, setName, setSubsystem, unless, until, withDeadline, withInterruptBehavior, withName, withTimeout, withTimeout
-
Constructor Details
-
IdleIndexerCommand
Creates an idle command for the indexer.- Parameters:
subsystem- indexer subsystem to hold at idle RPM
-