From f1a0235a7902f9d98a4d1229012c754dfc1314fd Mon Sep 17 00:00:00 2001 From: Jack Nelson Date: Thu, 22 Aug 2024 13:19:39 -0400 Subject: [PATCH] update offset --- src/main/java/frc/robot/Constants.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/frc/robot/Constants.java b/src/main/java/frc/robot/Constants.java index cadf0ae..8f54e4a 100644 --- a/src/main/java/frc/robot/Constants.java +++ b/src/main/java/frc/robot/Constants.java @@ -2,6 +2,8 @@ package frc.robot; +import edu.wpi.first.math.util.Units; + /** * The Constants class provides a convenient place for teams to hold robot-wide numerical or boolean * constants. This class should not be used for any other purpose. All constants should be declared @@ -61,7 +63,7 @@ public static final class CANConstants { public static final int ARMLIMITSWITCHBACK = 1; // Shooter Angles - public static final double ARMENCODEROFFSET = -2.45; + public static final double ARMENCODEROFFSET = Units.radiansToDegrees(0.0305); public static final double ARMSTARTINGANGLE = 22.5 + ARMENCODEROFFSET; // WHY MaTH HURT public static final double ARMMINRELATVESTART = 0.0; public static final double ARMLOADANGLE = 35 - ARMSTARTINGANGLE;