Skip to content

Commit

Permalink
back to 2 tags
Browse files Browse the repository at this point in the history
  • Loading branch information
cherriae committed Mar 14, 2024
1 parent 908cf10 commit 93cb321
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/subsystems/VisionSubsystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public Optional<Pose2d> getBotpose() {
int tags = (int) botpose_array[7];
double distance = botpose_array[9];

// if (tags < 2) return Optional.empty();
if (tags < 2) return Optional.empty();
if (distance > FieldConstants.TAG_DISTANCE_THRESHOLD) return Optional.empty();

double botposeX = _xFilter.calculate(botpose_array[0]); // to get rid of the weird origin outlier
Expand Down

0 comments on commit 93cb321

Please sign in to comment.