From 1aed146249c05b1dc2ebae552816fb011a2a5018 Mon Sep 17 00:00:00 2001 From: caTrixLiu Date: Wed, 4 Dec 2024 23:01:22 +0800 Subject: [PATCH] tuned some vision constants --- src/main/java/frc/robot/constants/VisionConstants.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/frc/robot/constants/VisionConstants.java b/src/main/java/frc/robot/constants/VisionConstants.java index b3a958d..53ed190 100644 --- a/src/main/java/frc/robot/constants/VisionConstants.java +++ b/src/main/java/frc/robot/constants/VisionConstants.java @@ -18,7 +18,7 @@ public class VisionConstants { /* standard deviation for odometry and gyros */ ODOMETRY_TRANSLATIONAL_STANDARD_ERROR_METERS = 0.04, - GYRO_ROTATIONAL_STANDARD_ERROR_RADIANS = Math.toRadians(0.3); + GYRO_ROTATIONAL_STANDARD_ERROR_RADIANS = Math.toRadians(0.1); public static final List photonVisionCameras = List.of( new PhotonCameraProperties( @@ -51,7 +51,7 @@ public class VisionConstants { new Translation2d(0.229, 0.348), 0.2, Rotation2d.fromDegrees(30), - 30, + 35, 180 // upside-down ), new PhotonCameraProperties( @@ -67,7 +67,7 @@ public class VisionConstants { new Translation2d(0.229, -0.348), 0.2, Rotation2d.fromDegrees(-30), - 30, + 35, 180 // upside-down ), new PhotonCameraProperties( @@ -83,7 +83,7 @@ public class VisionConstants { new Translation2d(-0.229, 0.330), 0.2, Rotation2d.fromDegrees(150), - 35, + 40, 180 // upside-down ), new PhotonCameraProperties( @@ -99,7 +99,7 @@ public class VisionConstants { new Translation2d(-0.229, -0.330), 0.2, Rotation2d.fromDegrees(-150), - 35, + 40, 180 // upside-down )); }