Package frc.robot.commands
Class OnTheFlyShootCommand
java.lang.Object
edu.wpi.first.wpilibj2.command.Command
frc.robot.commands.OnTheFlyShootCommand
- All Implemented Interfaces:
edu.wpi.first.util.sendable.Sendable
public class OnTheFlyShootCommand
extends edu.wpi.first.wpilibj2.command.Command
-
Nested Class Summary
Nested classes/interfaces inherited from class edu.wpi.first.wpilibj2.command.Command
edu.wpi.first.wpilibj2.command.Command.InterruptionBehavior -
Field Summary
Fields inherited from class edu.wpi.first.wpilibj2.command.Command
m_requirements -
Constructor Summary
ConstructorsConstructorDescriptionOnTheFlyShootCommand(SwerveSubsystem swerveSubsystem, DoubleSupplier forward, DoubleSupplier sideways) Rotates the robot to face the speaker, while still allowing the driver to control forward and backward movement -
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, initSendable, isFinished, isScheduled, onlyIf, onlyWhile, raceWith, repeatedly, runsWhenDisabled, schedule, setName, setSubsystem, unless, until, withInterruptBehavior, withName, withTimeout
-
Constructor Details
-
OnTheFlyShootCommand
public OnTheFlyShootCommand(SwerveSubsystem swerveSubsystem, DoubleSupplier forward, DoubleSupplier sideways) Rotates the robot to face the speaker, while still allowing the driver to control forward and backward movement- Parameters:
swerveSubsystem- The instance ofSwerveSubsystemforward- The desired forward percentage of the robotsideways- The desired sideways percentage of the robot
-
-
Method Details
-
execute
public void execute()- Overrides:
executein classedu.wpi.first.wpilibj2.command.Command
-
initialize
public void initialize()- Overrides:
initializein classedu.wpi.first.wpilibj2.command.Command
-
end
public void end(boolean interrupted) - Overrides:
endin classedu.wpi.first.wpilibj2.command.Command
-