Package frc.robot.commands
Class CommandFactory
java.lang.Object
frc.robot.commands.CommandFactory
File to create commands using factories
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
Command Factory for Auto Specific Commands -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Command
autoAngleWristSpeaker
(ElevatorWrist elevatorWrist, Swerve swerveDrive) Command to auto angle the wirst for the speaker opening based on distance from the speakerstatic Command
intakeNote
(Intake intake) Command to run the intake and indexer at the proper speed to intake a notestatic Command
newIntakeCommand
(Intake intake, ElevatorWrist elevatorWrist) New intake command to prevent intaking past the intake when the elevator isn't homestatic Command
passThroughShoot
(Shooter shooter, Intake intake) Runs intake, indexer and shooter all at once.static Command
runIntake
(Intake intake, ElevatorWrist elevatorWrist) Checks to make sure all preconditions are met before running the intakestatic Command
shootSpeaker
(Shooter shooter, Intake intake) Wrist follows the speaker until it is met, then it shootsstatic Command
Command to spit out the notes
-
Constructor Details
-
CommandFactory
public CommandFactory()
-
-
Method Details
-
runIntake
Checks to make sure all preconditions are met before running the intake- Parameters:
intake
- Intake subsystemelevatorWrist
- Elevator and Wrist subsystem- Returns:
- Returns a command
-
shootSpeaker
Wrist follows the speaker until it is met, then it shoots- Parameters:
shooter
- Shooter subsystemintake
- Intake subsystem- Returns:
- Returns a command
-
passThroughShoot
Runs intake, indexer and shooter all at once.- Parameters:
shooter
- Shooter subsystemintake
- Intake subsystem- Returns:
- Returns a command
-
spit
Command to spit out the notes- Parameters:
shooter
- Shooter Subsystemintake
- Intake Subsystem- Returns:
- Command
-
intakeNote
Command to run the intake and indexer at the proper speed to intake a note- Parameters:
intake
- Intake Subsystem- Returns:
- Command
-
autoAngleWristSpeaker
Command to auto angle the wirst for the speaker opening based on distance from the speaker- Parameters:
elevatorWrist
- Elevator Wrist SubsystemswerveDrive
- Swerve Drive Subsystem- Returns:
- Command
-
newIntakeCommand
New intake command to prevent intaking past the intake when the elevator isn't home- Parameters:
intake
- Intake SubsystemelevatorWrist
- Elevator Wrist Subsystem- Returns:
- Command
-