From be92020b5ace7c10470c44fe398688a5469c621e Mon Sep 17 00:00:00 2001 From: Matthew Morley Date: Sun, 1 Oct 2023 11:22:40 -0400 Subject: [PATCH] Run lint --- .../apriltagExample/src/main/include/PhotonCameraWrapper.h | 4 ++-- .../src/main/java/frc/robot/PhotonCameraWrapper.java | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/photonlib-cpp-examples/apriltagExample/src/main/include/PhotonCameraWrapper.h b/photonlib-cpp-examples/apriltagExample/src/main/include/PhotonCameraWrapper.h index 5caab2ad53..c96ff8078d 100644 --- a/photonlib-cpp-examples/apriltagExample/src/main/include/PhotonCameraWrapper.h +++ b/photonlib-cpp-examples/apriltagExample/src/main/include/PhotonCameraWrapper.h @@ -36,8 +36,8 @@ class PhotonCameraWrapper { public: photonlib::PhotonPoseEstimator m_poseEstimator{ frc::LoadAprilTagLayoutField(frc::AprilTagField::k2023ChargedUp), - photonlib::MULTI_TAG_PNP, std::move(photonlib::PhotonCamera{"WPI2023"}), - frc::Transform3d{}}; + photonlib::MULTI_TAG_PNP_ON_RIO, + std::move(photonlib::PhotonCamera{"WPI2023"}), frc::Transform3d{}}; inline std::optional Update( frc::Pose2d estimatedPose) { diff --git a/photonlib-java-examples/apriltagExample/src/main/java/frc/robot/PhotonCameraWrapper.java b/photonlib-java-examples/apriltagExample/src/main/java/frc/robot/PhotonCameraWrapper.java index d46957886c..8bea9687b5 100644 --- a/photonlib-java-examples/apriltagExample/src/main/java/frc/robot/PhotonCameraWrapper.java +++ b/photonlib-java-examples/apriltagExample/src/main/java/frc/robot/PhotonCameraWrapper.java @@ -50,7 +50,10 @@ public PhotonCameraWrapper() { // Create pose estimator photonPoseEstimator = new PhotonPoseEstimator( - fieldLayout, PoseStrategy.MULTI_TAG_PNP, photonCamera, VisionConstants.robotToCam); + fieldLayout, + PoseStrategy.MULTI_TAG_PNP_ON_RIO, + photonCamera, + VisionConstants.robotToCam); photonPoseEstimator.setMultiTagFallbackStrategy(PoseStrategy.LOWEST_AMBIGUITY); } catch (IOException e) { // The AprilTagFieldLayout failed to load. We won't be able to estimate poses if we don't know