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 TypeClassDescriptionclassCommand Factory for Auto Specific Commands -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CommandautoAngleWristSpeaker(ElevatorWrist elevatorWrist, Swerve swerveDrive) Command to auto angle the wirst for the speaker opening based on distance from the speakerstatic CommandintakeNote(Intake intake) Command to run the intake and indexer at the proper speed to intake a notestatic CommandnewIntakeCommand(Intake intake, ElevatorWrist elevatorWrist) New intake command to prevent intaking past the intake when the elevator isn't homestatic CommandpassThroughShoot(Shooter shooter, Intake intake) Runs intake, indexer and shooter all at once.static CommandrunIntake(Intake intake, ElevatorWrist elevatorWrist) Checks to make sure all preconditions are met before running the intakestatic CommandshootSpeaker(Shooter shooter, Intake intake) Wrist follows the speaker until it is met, then it shootsstatic CommandCommand 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
-