Class Auto

java.lang.Object
frc.robot.subsystems.Auto

public class Auto extends Object
Subsystem for the robot's autonomous functionality.
  • Constructor Details

    • Auto

      public Auto()
  • Method Details

    • setupPathPlanner

      public static void setupPathPlanner(Drivetrain drivetrain, DriverStation.Alliance alliance)
      Setup AutoBuilder for PathPlanner.
    • setupPathPlannerFailsafe

      public static void setupPathPlannerFailsafe(Drivetrain drivetrain)
      Configures AutoBuilder if it hasn't already been configured. This should be run on enable so things like pathfinding commands don't cause the code to crash.
      Parameters:
      drivetrain - The Drivetrain for PathPlanner to control.
    • getAutonomousCommand

      public static Command getAutonomousCommand(String pathName)
      Get the path follower with events.
      Parameters:
      pathName - PathPlanner path name.
      Returns:
      AutoBuilder.followPath(PathPlannerPath) path command.