import choreo.auto.AutoChooser;
import choreo.auto.AutoFactory;
+import choreo.auto.AutoRoutine;
import edu.wpi.first.math.geometry.Pose3d;
import edu.wpi.first.wpilibj.DriverStation;
import edu.wpi.first.wpilibj.RobotController;
}
}
+ public void addChoreoAuto(String name, AutoRoutine auto) {
+ choreoAutoChooser.addCmd(name, auto::cmd);
+ }
+
/**
* Initialize the SendableChooser on the SmartDashboard.
* Fill the SendableChooser with available Commands.
addAuto(rightDynamicConservativeDoubleSwipe, dynamicAutoBuilder.getDynamicDoubleConservativeSwipe(false));
addAuto("testChoreo", ChoreoPathCommand.basicTrajectoryAuto("test.traj", true, autoFactory));
+ addChoreoAuto("choreoLiberalLeft", ChoreoPathCommand.leftConservative(autoFactory, intake, spindexer, turret, hood));
// put the Chooser on the SmartDashboard
SmartDashboard.putData("Auto chooser", autoChooser);
}
public Command getAutoCommand() {
- return autoChooser.getSelected();
+ // return autoChooser.getSelected();
+ return choreoAutoChooser.selectedCommand();
}
public void logComponents() {
public class ChoreoPathCommand {
+ public ChoreoPathCommand(Intake intake, Spindexer spindexer, Turret turret) {
+
+ }
+
public static Command basicTrajectoryAuto(String pathName, boolean resetOdemetry, AutoFactory factory) {
Command command = factory.trajectoryCmd(pathName);