Skip to content

Commit

Permalink
Make four piece from old 5 piece
Browse files Browse the repository at this point in the history
  • Loading branch information
BenG49 committed Apr 8, 2024
1 parent 7cbd857 commit e475133
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 17 deletions.
12 changes: 5 additions & 7 deletions src/main/java/com/stuypulse/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,8 @@ public void configureAutons() {
AutonConfig CBAED = new AutonConfig("5 CBAE", SixPieceCBAED::new,
"Preload to C Close", "Close Preload to C", "C to B", "B to A","A to E", "E to Shoot", "Shoot to D (CBAED)", "D to Shoot");

AutonConfig CBAED_OLD = new AutonConfig("5 CBAE Old", SixPieceCBAEDOld::new,
"Preload to C", "C to B", "B to A", "A to E", "E to Shoot", "Shoot to D (CBAED)", "D to Shoot");
AutonConfig CBA = new AutonConfig("4 CBA", FourPieceCBA::new,
"Preload to C", "C to B", "B to A");

AutonConfig CHGF = new AutonConfig("4.5 Piece CHGF", FivePieceCHGF::new,
"Preload to C", "CShoot To H (CHGF)", "H to HShoot (HGF)", "HShoot to G (HGF)", "G to Shoot (HGF)", "GShoot to F (HGF)");
Expand All @@ -327,14 +327,12 @@ public void configureAutons() {
HGF.registerDefaultBlue(autonChooser)
.registerRed(autonChooser);

CBAED
.registerBlue(autonChooser)
CBAED.registerBlue(autonChooser)
.registerRed(autonChooser);

CHGF
.registerBlue(autonChooser)
CBA.registerBlue(autonChooser)
.registerRed(autonChooser);

SmartDashboard.putData("Autonomous", autonChooser);

}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.stuypulse.robot.commands.auton.CBADE;

import com.pathplanner.lib.path.PathPlannerPath;
import com.stuypulse.robot.commands.auton.FollowPathAlignAndShoot;
import com.stuypulse.robot.commands.auton.FollowPathAndIntake;
import com.stuypulse.robot.commands.conveyor.ConveyorShootRoutine;
import com.stuypulse.robot.commands.shooter.ShooterPodiumShot;
Expand All @@ -16,9 +15,9 @@
/**
* Shoots second shot at podium, shoots first shot between C and B
*/
public class SixPieceCBAEDOld extends SequentialCommandGroup {
public class FourPieceCBA extends SequentialCommandGroup {

public SixPieceCBAEDOld(PathPlannerPath... paths) {
public FourPieceCBA(PathPlannerPath... paths) {
addCommands(
new ParallelCommandGroup(
new WaitCommand(Auton.SHOOTER_STARTUP_DELAY)
Expand All @@ -40,13 +39,7 @@ public SixPieceCBAEDOld(PathPlannerPath... paths) {

new FollowPathAndIntake(paths[2]),
new SwerveDriveToShoot(),
new ConveyorShootRoutine(),

new FollowPathAndIntake(paths[3]),
new FollowPathAlignAndShoot(paths[4], new SwerveDriveToShoot()),

new FollowPathAndIntake(paths[5]),
new FollowPathAlignAndShoot(paths[6], new SwerveDriveToShoot())
new ConveyorShootRoutine()
);
}

Expand Down

0 comments on commit e475133

Please sign in to comment.