Skip to content

Commit

Permalink
fix: prevent test auto crashing code
Browse files Browse the repository at this point in the history
  • Loading branch information
WeilSimon committed Sep 26, 2024
1 parent 84d19e7 commit 549de2a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/main/java/org/team1540/robot2024/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ private void configureAutoRoutines() {
}
autos.add(new AutoCommand("WheelRadiusChar", new WheelRadiusCharacterization(drivetrain, WheelRadiusCharacterization.Direction.COUNTER_CLOCKWISE)));
autos.addDefault(new AutoCommand("Dwayne :skull:"));
autos.addDefault(new ATestAuto(drivetrain, shooter, indexer));
// autos.addDefault(new ATestAuto(drivetrain, shooter, indexer));
// autos.add(new AmpLanePADEF(drivetrain, shooter, indexer));
// autos.add(new AmpLanePAEDF(drivetrain, shooter, indexer));
// autos.add(new AmpLanePAEDSprint(drivetrain, shooter, indexer));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,16 @@
package org.team1540.robot2024.commands.autos;

import com.pathplanner.lib.auto.AutoBuilder;
import edu.wpi.first.wpilibj2.command.*;
import org.team1540.robot2024.commands.shooter.AutoShootPrepare;
import org.team1540.robot2024.commands.shooter.ShootSequence;
import org.team1540.robot2024.subsystems.drive.Drivetrain;
import org.team1540.robot2024.subsystems.indexer.Indexer;
import org.team1540.robot2024.subsystems.shooter.Shooter;
import org.team1540.robot2024.util.auto.AutoCommand;
import org.team1540.robot2024.util.auto.PathHelper;
import org.team1540.robot2024.util.math.Triplet;

import java.util.Set;
import java.util.function.BooleanSupplier;
import java.util.function.Supplier;
public class testAuto extends AutoCommand {

public class ATestAuto extends AutoCommand {

public ATestAuto(Drivetrain drivetrain, Shooter shooter, Indexer indexer) {
public testAuto(Drivetrain drivetrain, Shooter shooter, Indexer indexer) {
super("!ATestAuto");
addPath(
PathHelper.fromChoreoPath("New Path.1", true, true),
Expand Down

0 comments on commit 549de2a

Please sign in to comment.