Package frc.robot.commands
Class ShootCommand
- java.lang.Object
-
- edu.wpi.first.wpilibj2.command.CommandBase
-
- frc.robot.commands.ShootCommand
-
- All Implemented Interfaces:
edu.wpi.first.util.sendable.Sendable
,edu.wpi.first.wpilibj2.command.Command
public class ShootCommand extends edu.wpi.first.wpilibj2.command.CommandBase
-
-
Field Summary
Fields Modifier and Type Field Description java.util.function.BooleanSupplier
fastShootInput
java.util.function.BooleanSupplier
reverseShootInput
java.util.function.BooleanSupplier
slowShootInput
ShootingSubsystem
subsystem
-
Constructor Summary
Constructors Constructor Description ShootCommand(ShootingSubsystem shootingSubsystem, java.util.function.BooleanSupplier fastShootInput, java.util.function.BooleanSupplier slowShootInput, java.util.function.DoubleSupplier intakeInput, java.util.function.BooleanSupplier reverseShootInput)
Constructor for the ShootCommand class
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
end(boolean interrupted)
void
execute()
void
initialize()
boolean
isFinished()
-
Methods inherited from class edu.wpi.first.wpilibj2.command.CommandBase
addRequirements, getName, getRequirements, getSubsystem, initSendable, setName, setSubsystem, withName
-
-
-
-
Field Detail
-
subsystem
public ShootingSubsystem subsystem
-
fastShootInput
public java.util.function.BooleanSupplier fastShootInput
-
slowShootInput
public java.util.function.BooleanSupplier slowShootInput
-
reverseShootInput
public java.util.function.BooleanSupplier reverseShootInput
-
-
Constructor Detail
-
ShootCommand
public ShootCommand(ShootingSubsystem shootingSubsystem, java.util.function.BooleanSupplier fastShootInput, java.util.function.BooleanSupplier slowShootInput, java.util.function.DoubleSupplier intakeInput, java.util.function.BooleanSupplier reverseShootInput)
Constructor for the ShootCommand class- Parameters:
shootingSubsystem
- Subsystem for shooting motorsfastShootInput
- Boolean that determines whether we want to shoot or notslowShootInput
- Boolean that determines if the intake motors are on or not
-
-