Skip to content

Commit

Permalink
pdh perma off and new ta thresh
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver-Cushman committed Oct 29, 2024
1 parent 7be869f commit bf88725
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 2 additions & 4 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -306,10 +306,8 @@ private void configureTimedEvents() {
&& shooter.getAverageSpeed() > 1700
&& swerve.getPose().getX() > FieldConstants.CENTERLINE_X ^ Robot.isBlueAlliance()
&& limelight3g.getPose2d().getTranslation().getDistance(swerve.getPose().getTranslation()) < Units.inchesToMeters(4))
.onTrue(Commands.runOnce(() ->
pdh.setSwitchableChannel(true)).alongWith(limelight3g.blinkLeds(() -> 1), driver.setRumble(() -> 1)))
.onFalse(Commands.runOnce(() ->
pdh.setSwitchableChannel(false)).alongWith(driver.setRumble(() -> 0)));
.onTrue(Commands.runOnce(() -> driver.setRumble(() -> 1)))
.onFalse(Commands.runOnce(() -> driver.setRumble(() -> 0)));

// When our alliance changes, reflect that in the path previewer
new Trigger(Robot::isRedAlliance)
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/frc/robot/util/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -1187,7 +1187,8 @@ public static final class CameraConstants {
public static final long LIMELIGHT_MAX_UPDATE_TIME = 200_000; // Micro Seconds = 0.2 Seconds

public static final double LIMELIGHT_3G_DOUBLE_TA_CUTOFF_AUTO = 0.070;
public static final double LIMELIGHT_3G_DOUBLE_TA_CUTOFF_TELE = 0.046;
public static final double LIMELIGHT_3G_DOUBLE_TA_CUTOFF_TELE = 0.060
;

public static final double LIMELIGHT_3G_SINGLE_TA_CUTOFF_AUTO = 0.175;
public static final double LIMELIGHT_3G_SINGLE_TA_CUTOFF_TELE = 0.141;
Expand Down

0 comments on commit bf88725

Please sign in to comment.