Package frc.robot.commands
Class AutoIntakeOrShoot
java.lang.Object
edu.wpi.first.wpilibj2.command.Command
frc.robot.commands.AutoIntakeOrShoot
- All Implemented Interfaces:
edu.wpi.first.util.sendable.Sendable
public class AutoIntakeOrShoot
extends edu.wpi.first.wpilibj2.command.Command
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class edu.wpi.first.wpilibj2.command.Command
edu.wpi.first.wpilibj2.command.Command.InterruptionBehavior
-
Field Summary
FieldsModifier and TypeFieldDescriptionFields inherited from class edu.wpi.first.wpilibj2.command.Command
m_requirements
-
Constructor Summary
ConstructorsConstructorDescriptionAutoIntakeOrShoot
(IndexerSubsystem indexerSubsystem, IntakeSubsystem intakeSubsystem, AutoIntakeOrShoot.Goal goal) -
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, initialize, initSendable, isScheduled, onlyIf, onlyWhile, raceWith, repeatedly, runsWhenDisabled, schedule, setName, setSubsystem, unless, until, withInterruptBehavior, withName, withTimeout
-
Field Details
-
indexerSubsystem
-
intakeSubsystem
-
-
Constructor Details
-
AutoIntakeOrShoot
public AutoIntakeOrShoot(IndexerSubsystem indexerSubsystem, IntakeSubsystem intakeSubsystem, AutoIntakeOrShoot.Goal goal)
-
-
Method Details
-
execute
public void execute()- Overrides:
execute
in classedu.wpi.first.wpilibj2.command.Command
-
end
public void end(boolean interrupted) - Overrides:
end
in classedu.wpi.first.wpilibj2.command.Command
-
isFinished
public boolean isFinished()- Overrides:
isFinished
in classedu.wpi.first.wpilibj2.command.Command
-