Skip to content

Commit

Permalink
I LOVE MERGE CONFLICTS !!!!
Browse files Browse the repository at this point in the history
  • Loading branch information
kirbt committed Mar 19, 2024
1 parent ec8c483 commit 2f60eb9
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/main/java/frc/team2412/robot/util/auto/AutoLogic.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import frc.team2412.robot.commands.launcher.StopLauncherCommand;
import frc.team2412.robot.subsystems.LauncherSubsystem;
import frc.team2412.robot.util.DynamicSendableChooser;
import frc.team2412.robot.util.PathPlannerAutos;
import java.util.List;
import java.util.Map;

Expand Down Expand Up @@ -143,13 +144,20 @@ public static enum StartPosition {
private static SendableChooser<Integer> gameObjects = new SendableChooser<Integer>();
private static SendableChooser<Boolean> isVision = new SendableChooser<Boolean>();

// methods

public static Command registerAuto(String autoName, Command command, String... primaryPathNames) {
PathPlannerAutos.registerAuto(autoName, primaryPathNames);
return command.withName(autoName);
}

/** Registers commands in PathPlanner */
public static void registerCommands() {
// param: String commandName, Command command

// Intake
NamedCommands.registerCommand("StopIntake", new IntakeStopCommand(s.intakeSubsystem));
NamedCommands.registerCommand("Intake", new AllInCommand(s.intakeSubsystem));
NamedCommands.registerCommand("Intake", new AllInCommand(s.intakeSubsystem, null));
NamedCommands.registerCommand(
"IntakeSensorOverride", new AllInSensorOverrideCommand(s.intakeSubsystem));
// Launcher
Expand Down Expand Up @@ -179,7 +187,7 @@ public static void registerCommands() {
NamedCommands.registerCommand(
"LowSpeakerCenterLineN5N4N3", ComplexAutoPaths.lowSpeakerCenterLineN5N4N3);
NamedCommands.registerCommand(
"TopSpeakerCenterLineN1N2AutoLine1", ComplexAutoPaths.TopSpeakerCenterLineN1N2AutoLine1);
"TopSpeakerCenterLineN1N2AutoLine1", ComplexAutoPaths.TopSpeakerCenterLineN1N2AutoLineN1);
NamedCommands.registerCommand(
"TopSpeakerCenterLineN1N2AutoLine1", ComplexAutoPaths.TopSpeakerCenterLineN1N2N3);
}
Expand Down

0 comments on commit 2f60eb9

Please sign in to comment.