Skip to content

Commit

Permalink
change naming of reject pose method
Browse files Browse the repository at this point in the history
  • Loading branch information
linglejack06 committed Dec 11, 2024
1 parent 26f5ea4 commit 536cb6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vision/src/main/java/coppercore/vision/VisionLocalizer.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public void periodic() {
List<Pose3d> robotPosesRejected = new LinkedList<>();

for (VisionIO.PoseObservation observation : inputs[cameraIndex].poseObservations) {
if (rejectPose(observation)) {
if (shouldRejectPose(observation)) {
robotPosesRejected.add(observation.pose());
continue;
}
Expand All @@ -95,7 +95,7 @@ public void setVisionConsumer(VisionConsumer consumer) {
this.consumer = consumer;
}

private boolean rejectPose(VisionIO.PoseObservation observation) {
private boolean shouldRejectPose(VisionIO.PoseObservation observation) {
return observation.tagCount() == 0 // Must have at least one tag
|| (observation.tagCount() == 1
&& observation.averageTagDistance()
Expand Down

0 comments on commit 536cb6a

Please sign in to comment.