From: mixxlto Date: Tue, 10 Feb 2026 00:46:57 +0000 (-0800) Subject: Update ShooterConstants.java X-Git-Url: https://git.taranathan.com/?a=commitdiff_plain;h=ee9f9b2ee6ff3fe663b1217f5317d5373b01ed81;p=FRC2026.git Update ShooterConstants.java --- diff --git a/src/main/java/frc/robot/subsystems/shooter/ShooterConstants.java b/src/main/java/frc/robot/subsystems/shooter/ShooterConstants.java index c49f49e..f33968c 100644 --- a/src/main/java/frc/robot/subsystems/shooter/ShooterConstants.java +++ b/src/main/java/frc/robot/subsystems/shooter/ShooterConstants.java @@ -1,23 +1,13 @@ package frc.robot.subsystems.shooter; -public class ShooterConstants { - //TODO: find these values - public static final double FEEDER_RUN_POWER = 0.5; // meters per second?? - public static double SHOOTER_VELOCITY = 30.0; // meters per second - public static final double SHOOTER_GEAR_RATIO = 36.0 / 24.0; // gear ratio from motors to shooter wheel - // public static final double SHOOTER_LAUNCH_DIAMETER = 0.0762; // meters (3 inches) - public static final double SHOOTER_LAUNCH_DIAMETER = 0.1016; // meters (4 inches) I think this is right. - public static final double SHOOTER_RUN_POWER = 0.3; - public static final double SENSOR_DISTANNCE_THRESHOLD = 0.150; // meters - public static final double SENSOR_AMBIENCE_THRESHOLD = 0.100; // meters +import edu.wpi.first.math.util.Units; - // in m/s - public static final double EXIT_VELOCITY_TOLERANCE = 1.0; +public class ShooterConstants { + public static final double SHOOTER_VELOCITY = 1.0; + public static final double SHOOTER_LAUNCH_DIAMETER = Units.inchesToMeters(4.0); // for bang bang public static final double TORQUE_CURRENT_CONTROL_TOLERANCE = 10; // velocity (rotations per second) public static final double TORQUE_CURRENT_CONTROL_GOAL_AMP = 40; // TUNE } -// 8 velcocity is too little -// 16 is too much \ No newline at end of file