Skip to content

Commit

Permalink
[#501] Singular amp
Browse files Browse the repository at this point in the history
  • Loading branch information
MattD8957 committed Mar 26, 2024
1 parent df3af8c commit ced0684
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 61 deletions.
11 changes: 3 additions & 8 deletions src/main/java/frc/robot/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -601,9 +601,9 @@ public enum ShootingState {

public class CandConstants { // TODO get real
// Amp
public static final double AMP_TOP_RPM = 50;
public static final double AMP_BOTTOM_RPM = 2000;
public static final double AMP_ANGLE = 45;
public static final double AMP_TOP_RPM = 300;
public static final double AMP_BOTTOM_RPM = 700;
public static final double AMP_ANGLE = 93;

// PointBlank
public static final double POINT_BLANK_RPM = 2000;
Expand All @@ -625,11 +625,6 @@ public class CandConstants { // TODO get real
public static final double C3_RPM = 0;
public static final double C3_ANGLE = 0;

// Reverse Amp Shot
public static final double REVERSE_AMP_TOP_RPM = 300;
public static final double REVERSE_AMP_BOTTOM_RPM = 700;
public static final double REVERSE_AMP_ANGLE = 93;

// Line
public static final double LINE_RPM = 0;
public static final double LINE_ANGLE = 0;
Expand Down
11 changes: 3 additions & 8 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
import frc.robot.command.stopDrive;
import frc.robot.command.shoot.AmpShot;
import frc.robot.command.shoot.FlywheelIN;
import frc.robot.command.shoot.ReverseAmpShot;
import frc.robot.command.shoot.PointBlankShot;
import frc.robot.command.shoot.SmartShoot;
import frc.robot.command.shoot.PivotUP;
Expand Down Expand Up @@ -258,13 +257,9 @@ protected void configureButtonBindings() {
// new Trigger(coPilot::getAButton).whileTrue(new Tune(flywheel,
// pivot).deadlineWith(leds.enableState(LED_STATES.SHOOTING)));

if (Constants.isMercury()) {
new Trigger(coPilot::getAButton).whileTrue(new ReverseAmpShot(flywheel, pivot));
} else {
new Trigger(coPilot::getAButton)
.whileTrue(new AmpShot(flywheel, pivot)
.deadlineWith(leds.enableState(LED_STATES.SHOOTING)));
}
new Trigger(coPilot::getAButton)
.whileTrue(new AmpShot(flywheel, pivot)
.deadlineWith(leds.enableState(LED_STATES.SHOOTING)));

/* BIAS */
new Trigger(() -> coPilot.getPOV() == 0)
Expand Down
45 changes: 0 additions & 45 deletions src/main/java/frc/robot/command/shoot/ReverseAmpShot.java

This file was deleted.

0 comments on commit ced0684

Please sign in to comment.