From 3fd5b240471889fb896a76969e6e9d7ca5fac8e8 Mon Sep 17 00:00:00 2001 From: PGgit08 Date: Fri, 22 Mar 2024 16:35:12 -0400 Subject: [PATCH] tested shooter --- src/main/java/frc/robot/Constants.java | 2 +- src/main/java/frc/robot/subsystems/ShooterSubsystem.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/frc/robot/Constants.java b/src/main/java/frc/robot/Constants.java index 2c71868..62c7f25 100644 --- a/src/main/java/frc/robot/Constants.java +++ b/src/main/java/frc/robot/Constants.java @@ -103,7 +103,7 @@ public static class Encoders { public static final int SHOOTER_SHOOT_VEL = 10; // TODO: get this? - public static final double SHOOTER_ANGLE_OFFSET = 0.6359508158987704; + public static final double SHOOTER_ANGLE_OFFSET = 0.6311790157794754; } public static class FeedForward { diff --git a/src/main/java/frc/robot/subsystems/ShooterSubsystem.java b/src/main/java/frc/robot/subsystems/ShooterSubsystem.java index e0dfb82..88b4c3d 100644 --- a/src/main/java/frc/robot/subsystems/ShooterSubsystem.java +++ b/src/main/java/frc/robot/subsystems/ShooterSubsystem.java @@ -91,8 +91,8 @@ public ShooterSubsystem() { // _angleEncoder.reset(); // SmartDashboard.putNumber("ENC OFFSET", _angleEncoder.getPositionOffset()); - _angleEncoder.setPositionOffset(Encoders.SHOOTER_ANGLE_OFFSET); _angleEncoder.setDistancePerRotation(1024); + _angleEncoder.setPositionOffset(Encoders.SHOOTER_ANGLE_OFFSET); } @Override