Skip to content

Commit

Permalink
Override single tags to be completely excluded
Browse files Browse the repository at this point in the history
  • Loading branch information
superpenguin612 committed Mar 23, 2024
1 parent dec007b commit 33f73a7
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ public Matrix<N3, N1> getEstimationStdDevs(Pose2d estimatedPose, Matrix<N3, N1>
avgDist += tagPose.get().toPose2d().getTranslation().getDistance(estimatedPose.getTranslation());
}
if (numTags == 0)
return estStdDevs;
return singleTagStdDevs;
if (numTags < 2) {
return singleTagStdDevs;
}
avgDist /= numTags;

if (avgDist > 6)
Expand Down

0 comments on commit 33f73a7

Please sign in to comment.