]> git.taranathan.com Git - FRC2026.git/commitdiff
Update ShooterConstants.java
authormixxlto <maxtan0626@gmail.com>
Tue, 10 Feb 2026 00:46:57 +0000 (16:46 -0800)
committermixxlto <maxtan0626@gmail.com>
Tue, 10 Feb 2026 00:46:57 +0000 (16:46 -0800)
src/main/java/frc/robot/subsystems/shooter/ShooterConstants.java

index c49f49ec0258cc7111f16cb5ec131116dffe0f98..f33968c888000684d9b1c0188ec9c2ba5d4f9475 100644 (file)
@@ -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