Skip to content

Commit

Permalink
use number of tags for distance based variance
Browse files Browse the repository at this point in the history
  • Loading branch information
linglejack06 committed Dec 12, 2024
1 parent 64a8a14 commit 17a381e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ private Matrix<N3, N1> getLatestVariance(
stdDev.times(
1
+ (Math.pow(avgDistanceFromTarget, 2)
/ CoreVisionConstants.distanceFactor));
/ numTags > 0 ? numTags : CoreVisionConstants.distanceFactor));

// adjustment based on position of camera
if (cameraIndex < this.cameraStdDevFactors.length) {
Expand Down

0 comments on commit 17a381e

Please sign in to comment.