Package frc.robot.commands
Class SpinUpCommand
java.lang.Object
edu.wpi.first.wpilibj2.command.Command
frc.robot.commands.SpinUpCommand
- All Implemented Interfaces:
edu.wpi.first.util.sendable.Sendable
public class SpinUpCommand
extends edu.wpi.first.wpilibj2.command.Command
-
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 edu.wpi.first.wpilibj2.command.Command
m_requirements
-
Constructor Summary
ConstructorsConstructorDescriptionSpinUpCommand
(ShooterSubsystem shooterSubsystem, IndexerSubsystem indexerSubsystem) Spins up the shooter if we are close to the speakerSpinUpCommand
(ShooterSubsystem shooterSubsystem, LEDSubsystem ledSubsystem) Command to spin up the shooter, simply just spins the motors to shooterRPM (defined inShooterConstants
) -
Method Summary
Methods inherited from class edu.wpi.first.wpilibj2.command.Command
addRequirements, alongWith, andThen, andThen, asProxy, beforeStarting, beforeStarting, cancel, deadlineWith, finallyDo, finallyDo, getInterruptionBehavior, getName, getRequirements, getSubsystem, handleInterrupt, hasRequirement, ignoringDisable, initSendable, isFinished, isScheduled, onlyIf, onlyWhile, raceWith, repeatedly, runsWhenDisabled, schedule, setName, setSubsystem, unless, until, withInterruptBehavior, withName, withTimeout
-
Constructor Details
-
SpinUpCommand
Command to spin up the shooter, simply just spins the motors to shooterRPM (defined inShooterConstants
)- Parameters:
shooterSubsystem
- Instance ofShooterSubsystem
-
SpinUpCommand
Spins up the shooter if we are close to the speaker- Parameters:
shooterSubsystem
- Instance of theShooterSubsystem
indexerSubsystem
- Instance of theIndexerSubsystem
-
-
Method Details
-
execute
public void execute()- Overrides:
execute
in classedu.wpi.first.wpilibj2.command.Command
-
initialize
public void initialize()- Overrides:
initialize
in classedu.wpi.first.wpilibj2.command.Command
-
end
public void end(boolean interrupted) - Overrides:
end
in classedu.wpi.first.wpilibj2.command.Command
-