Skip to content

Commit

Permalink
Change target remove distance
Browse files Browse the repository at this point in the history
  • Loading branch information
superpenguin612 committed Apr 8, 2023
1 parent c5f82cc commit ecd572d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public Optional<EstimatedRobotPose> getEstimatedGlobalPose(
PhotonPipelineResult result = photonCamera.getLatestResult();
result.targets.removeIf((target) -> target.getPoseAmbiguity() > 0.2);
result.targets.removeIf((target) -> target.getFiducialId() > 8);
result.targets.removeIf((target) -> target.getBestCameraToTarget().getTranslation().getNorm() > 2);
result.targets.removeIf((target) -> target.getBestCameraToTarget().getTranslation().getNorm() > 4);

photonPoseEstimator.setReferencePose(prevEstimatedRobotPose);
Optional<EstimatedRobotPose> estimatedRobotPose = photonPoseEstimator.update(result);
Expand Down

0 comments on commit ecd572d

Please sign in to comment.