Change from k2024Crescendo to kDefaultField for AprilTagFieldLayout (#1667)

This reduces the things we need to update each year

Signed-off-by: Jade Turner <spacey-sooty@proton.me>
Co-authored-by: Matt <matthew.morley.ca@gmail.com>
This commit is contained in:
Jade
2025-01-03 22:03:00 +08:00
committed by GitHub
parent 09a741f540
commit 7c254ec5dc
8 changed files with 10 additions and 10 deletions

View File

@@ -43,7 +43,7 @@ class MyRobot(wpilib.TimedRobot):
self.swerve = drivetrain.Drivetrain()
self.cam = PhotonCamera("YOUR CAMERA NAME")
self.camPoseEst = PhotonPoseEstimator(
AprilTagFieldLayout.loadField(AprilTagField.k2024Crescendo),
AprilTagFieldLayout.loadField(AprilTagField.kDefaultField),
PoseStrategy.LOWEST_AMBIGUITY,
self.cam,
kRobotToCam,