Package frc.robot
Class CommandFactory
java.lang.Object
frc.robot.CommandFactory
Command Factory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CommandfollowHub(Turret turret, Swerve swerve, DoubleSupplier trimRight) Point turret at hub.static CommandpreShoot(Supplier<Pose2d> robotPoseSupplier, Supplier<Translation2d> targetSupplier, Turret turret, Shooter shooter, DoubleSupplier adjustUp, DoubleSupplier adjustRight) Prepare flywheel and turret for shooting from a given robot pose.static CommandReset the initstatic Commandshoot(RobotState state, Supplier<Translation2d> targetSupplier, Turret turret, Shooter shooter, Indexer indexer, AdjustableHood hood, DoubleSupplier adjustUp, DoubleSupplier adjustLeft, BooleanSupplier disableTurret) Shoot at a given target.
-
Constructor Details
-
CommandFactory
public CommandFactory()
-
-
Method Details
-
preShoot
public static Command preShoot(Supplier<Pose2d> robotPoseSupplier, Supplier<Translation2d> targetSupplier, Turret turret, Shooter shooter, DoubleSupplier adjustUp, DoubleSupplier adjustRight) Prepare flywheel and turret for shooting from a given robot pose. -
shoot
public static Command shoot(RobotState state, Supplier<Translation2d> targetSupplier, Turret turret, Shooter shooter, Indexer indexer, AdjustableHood hood, DoubleSupplier adjustUp, DoubleSupplier adjustLeft, BooleanSupplier disableTurret) Shoot at a given target. -
followHub
Point turret at hub. -
resetInit
Reset the init
-