Package frc.robot.commands.autocommands
Class ShootForSecondsCommand
- java.lang.Object
-
- edu.wpi.first.wpilibj2.command.CommandBase
-
- frc.robot.commands.autocommands.ShootForSecondsCommand
-
- All Implemented Interfaces:
edu.wpi.first.util.sendable.Sendable
,edu.wpi.first.wpilibj2.command.Command
public class ShootForSecondsCommand extends edu.wpi.first.wpilibj2.command.CommandBase
-
-
Constructor Summary
Constructors Constructor Description ShootForSecondsCommand(double seconds, DriveTrainSubsystem driveTrainSubsystem, ShootingSubsystem shootingSubsystem)
Command that makes the robot shoot for seconds.
-
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
-
-
-
-
Constructor Detail
-
ShootForSecondsCommand
public ShootForSecondsCommand(double seconds, DriveTrainSubsystem driveTrainSubsystem, ShootingSubsystem shootingSubsystem)
Command that makes the robot shoot for seconds.- Parameters:
driveTrainSubsystem
- The drive train subsystem.shootingSubsystem
- The subsystem for shooting.
-
-