We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e73fc58 commit 566f0c7Copy full SHA for 566f0c7
src/main/java/frc/robot/classes/photon/PhotonCameraPoseEstimator.java
@@ -34,7 +34,7 @@ public PhotonCameraPoseEstimator(
34
fieldLayout,
35
PoseStrategy.MULTI_TAG_PNP_ON_COPROCESSOR,
36
robotToCam);
37
- poseEstimator.setMultiTagFallbackStrategy(PoseStrategy.LOWEST_AMBIGUITY);
+ poseEstimator.setMultiTagFallbackStrategy(PoseStrategy.AVERAGE_BEST_TARGETS);
38
}
39
40
public Transform3d getRobotToCameraTransform() {
@@ -69,8 +69,8 @@ public void reset(Pose2d pose) {
69
poseEstimator.setReferencePose(pose);
70
71
72
- public void printErr(String message){
73
- if(errorCounter <= 0){
+ public void printErr(String message) {
+ if (errorCounter <= 0) {
74
System.err.println(message);
75
errorCounter = 100;
76
0 commit comments