Skip to content

Commit c2a8227

Browse files
changed amp back to manip
1 parent 595783a commit c2a8227

2 files changed

Lines changed: 23 additions & 22 deletions

File tree

src/main/java/frc/robot/BuildConstants.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ public final class BuildConstants {
55
public static final String MAVEN_GROUP = "";
66
public static final String MAVEN_NAME = "2024 Robot Code";
77
public static final String VERSION = "unspecified";
8-
public static final int GIT_REVISION = 320;
9-
public static final String GIT_SHA = "2c89f93b696e8f38145ff3ece9139d637201b983";
10-
public static final String GIT_DATE = "2024-08-10 19:14:18 EDT";
8+
public static final int GIT_REVISION = 321;
9+
public static final String GIT_SHA = "595783aa307f432a03116af1c4f77599478ee51c";
10+
public static final String GIT_DATE = "2024-08-12 20:54:55 EDT";
1111
public static final String GIT_BRANCH = "amp-bar";
12-
public static final String BUILD_DATE = "2024-08-12 20:49:44 EDT";
13-
public static final long BUILD_UNIX_TIME = 1723510184499L;
12+
public static final String BUILD_DATE = "2024-08-13 23:59:25 EDT";
13+
public static final long BUILD_UNIX_TIME = 1723607965830L;
1414
public static final int DIRTY = 1;
1515

1616
private BuildConstants() {}

src/main/java/frc/robot/RobotContainer.java

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -837,24 +837,24 @@ private void driverControls() {
837837
driveAButton.onTrue(climbCommands);
838838

839839
driveXButton.onTrue(trapCommands);
840-
driveController
841-
.b()
842-
.onTrue(
843-
new InstantCommand(() -> pivot.setShootState(SHOOT_STATE.AMP))
844-
.andThen(new ScoreAmp(elevator, pivot, shooter, drive)));
840+
// driveController
841+
// .b()
842+
// .onTrue(
843+
// new InstantCommand(() -> pivot.setShootState(SHOOT_STATE.AMP))
844+
// .andThen(new ScoreAmp(elevator, pivot, shooter, drive)));
845845

846-
driveController
847-
.b()
848-
.onFalse(
849-
new InstantCommand(() -> pivot.setShootState(SHOOT_STATE.AIMBOT))
850-
.andThen(
851-
new SequentialCommandGroup(
852-
new SetAmpBarTarget(5, 3, elevator),
853-
new InstantCommand(() -> shooter.turnOffFan()),
854-
new SetElevatorTarget(0, 0.5, elevator),
855-
new InstantCommand(() -> elevator.setConstraints(30, 85)),
856-
new InstantCommand(() -> shooter.stopFlywheels(), shooter),
857-
new SetPivotTarget(Constants.PivotConstants.STOW_SETPOINT_DEG, pivot))));
846+
// driveController
847+
// .b()
848+
// .onFalse(
849+
// new InstantCommand(() -> pivot.setShootState(SHOOT_STATE.AIMBOT))
850+
// .andThen(
851+
// new SequentialCommandGroup(
852+
// new SetAmpBarTarget(5, 3, elevator),
853+
// new InstantCommand(() -> shooter.turnOffFan()),
854+
// new SetElevatorTarget(0, 0.5, elevator),
855+
// new InstantCommand(() -> elevator.setConstraints(30, 85)),
856+
// new InstantCommand(() -> shooter.stopFlywheels(), shooter),
857+
// new SetPivotTarget(Constants.PivotConstants.STOW_SETPOINT_DEG, pivot))));
858858
// driveController
859859
// .rightBumper()
860860
// .whileTrue(
@@ -911,6 +911,7 @@ private void manipControls() {
911911
new InstantCommand(() -> pivot.setShootState(SHOOT_STATE.AIMBOT))
912912
.andThen(
913913
new SequentialCommandGroup(
914+
new SetAmpBarTarget(5, 3, elevator),
914915
new InstantCommand(() -> shooter.turnOffFan()),
915916
new SetElevatorTarget(0, 0.5, elevator),
916917
new InstantCommand(() -> elevator.setConstraints(30, 85)),

0 commit comments

Comments
 (0)