Skip to content

Commit

Permalink
remove placeholder auto setup
Browse files Browse the repository at this point in the history
  • Loading branch information
JayK445 committed Jan 4, 2025
1 parent eb9f2fc commit a6823a6
Showing 1 changed file with 2 additions and 25 deletions.
27 changes: 2 additions & 25 deletions src/main/java/frc/robot/Robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,6 @@
public class Robot extends LoggedRobot {
private RobotContainer robotContainer;

private static final String defaultAuto = "Default";
private static final String customAuto = "My Auto";
private String autoSelected;
private final LoggedDashboardChooser<String> chooser =
new LoggedDashboardChooser<>("Auto Choices");

/**
* This function is run when the robot is first started up and should be used for any
* initialization code.
Expand Down Expand Up @@ -67,10 +61,6 @@ public void robotInit() {
// Start AdvantageKit logger
Logger.start();

// Initialize auto chooser
chooser.addDefaultOption("Default Auto", defaultAuto);
chooser.addOption("My Auto", customAuto);

robotContainer = new RobotContainer();
}

Expand All @@ -82,24 +72,11 @@ public void robotPeriodic() {

/** This function is called once when autonomous is enabled. */
@Override
public void autonomousInit() {
autoSelected = chooser.get();
System.out.println("Auto selected: " + autoSelected);
}
public void autonomousInit() {}

/** This function is called periodically during autonomous. */
@Override
public void autonomousPeriodic() {
switch (autoSelected) {
case customAuto:
// Put custom auto code here
break;
case defaultAuto:
default:
// Put default auto code here
break;
}
}
public void autonomousPeriodic() {}

/** This function is called once when teleop is enabled. */
@Override
Expand Down

0 comments on commit a6823a6

Please sign in to comment.