Skip to content

Commit 566f0c7

Browse files
committed
test an averaging vision fallback strategy
1 parent e73fc58 commit 566f0c7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/frc/robot/classes/photon/PhotonCameraPoseEstimator.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public PhotonCameraPoseEstimator(
3434
fieldLayout,
3535
PoseStrategy.MULTI_TAG_PNP_ON_COPROCESSOR,
3636
robotToCam);
37-
poseEstimator.setMultiTagFallbackStrategy(PoseStrategy.LOWEST_AMBIGUITY);
37+
poseEstimator.setMultiTagFallbackStrategy(PoseStrategy.AVERAGE_BEST_TARGETS);
3838
}
3939

4040
public Transform3d getRobotToCameraTransform() {
@@ -69,8 +69,8 @@ public void reset(Pose2d pose) {
6969
poseEstimator.setReferencePose(pose);
7070
}
7171

72-
public void printErr(String message){
73-
if(errorCounter <= 0){
72+
public void printErr(String message) {
73+
if (errorCounter <= 0) {
7474
System.err.println(message);
7575
errorCounter = 100;
7676
}

0 commit comments

Comments
 (0)