Class AlignToReefBranch

java.lang.Object
edu.wpi.first.wpilibj2.command.Command
frc.alotobots.reefscape.commands.AlignToReefBranch
All Implemented Interfaces:
Sendable

public class AlignToReefBranch extends Command
Command that aligns the robot to the closest reef branch on the specified side.
  • Constructor Details

    • AlignToReefBranch

      public AlignToReefBranch(SwerveDriveSubsystem swerveDriveSubsystem, FieldConstants.BranchType branchType)
      Creates a new AlignToReefBranch command.
      Parameters:
      swerveDriveSubsystem - The swerve drive subsystem
      branchType - The type of the reef branch to align to (LEFT, RIGHT, ANY)
  • Method Details

    • initialize

      public void initialize()
      Overrides:
      initialize in class Command
    • execute

      public void execute()
      Overrides:
      execute in class Command
    • isFinished

      public boolean isFinished()
      Overrides:
      isFinished in class Command
    • end

      public void end(boolean interrupted)
      Overrides:
      end in class Command