Skip to content

Commit

Permalink
[#520] - replaced pipeline swaps with filter swaps
Browse files Browse the repository at this point in the history
  • Loading branch information
HeeistHo committed Apr 4, 2024
1 parent 3cc479b commit 38e9c56
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/main/java/frc/robot/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,9 @@ public class VisionConstants {
public static final Translation3d BLUE_SPEAKER_LOCATION = new Translation3d(0, 5.547593, 1.2);
public static final Translation3d RED_SPEAKER_LOCATION = new Translation3d(16.4592, 5.547593, 1.2);

public static final int[] SPEAKER_FILTERS = {4, 7};
public static final int[] ALL_TAG_FILTERS = {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16};


public static class LimelightOrientation {
public static final double STOPME_YAW = 180d;
Expand Down
6 changes: 4 additions & 2 deletions src/main/java/frc/robot/command/ComboPoint.java
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ public void initialize() {
targetPose = swapAlliance(originalTargetPose);
}

stopMe.setPipeline(VisionConstants.Pipelines.SPEAKER_PIPELINE);
// stopMe.setPipeline(VisionConstants.Pipelines.SPEAKER_PIPELINE);
stopMe.setFiducialIDFiltersOverride(VisionConstants.SPEAKER_FILTERS);
targetBias = 0;//5.5d;

System.out.println("DRIVE - COMBO POINT START");
Expand Down Expand Up @@ -204,7 +205,8 @@ public void updateLogging() {
@Override
public void end(boolean interrupted) {
System.out.println("DRIVE - COMBO POINT END");
stopMe.setPipeline(VisionConstants.Pipelines.TAG_PIPELINE);
// stopMe.setPipeline(VisionConstants.Pipelines.TAG_PIPELINE);
stopMe.setFiducialIDFiltersOverride(VisionConstants.ALL_TAG_FILTERS);
if (DriverStation.isAutonomous()) {
drivetrain.setField(0d, 0d, 0d);
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/subsystems/Limelights.java
Original file line number Diff line number Diff line change
Expand Up @@ -110,5 +110,5 @@ public void setOrientations(){

// champs.setRobotOrientation(0, 0, 0, 0, 0, 0);
}

}

0 comments on commit 38e9c56

Please sign in to comment.