Skip to content

Commit

Permalink
stop being silly
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesmackenzie committed Jan 27, 2024
1 parent 187c579 commit 7fcc760
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ public void setFieldToRobotSupplier(Supplier<Pose2d> fieldToRobotSupplier) {

private Matrix<N3, N1> cameraUncertainty(double averageTagDistanceM, int nTags) {
/*
* On this year's field, Apriltags are arranged into rough 'corridors' between the stage and
* On this year's field, AprilTags are arranged into rough 'corridors' between the stage and
* speaker, and a central 'desert,' where few tags can be found. It follows that we should
* determine the variance of our camera mesurements based on that.
* determine the variance of our camera measurements based on that.
*/
if (nTags < 1) {
if (nTags < 2) {
return VisionConstants.singleTagUncertainty;
} else if (averageTagDistanceM < 2.0 && this.robotInMidField()) {
return VisionConstants.lowCameraUncertainty;
Expand Down

0 comments on commit 7fcc760

Please sign in to comment.