]> git.taranathan.com Git - FRC2026.git/commitdiff
Drivetrain Changes
authorWesleyWong-972 <wesleycwong@gmail.com>
Tue, 24 Mar 2026 00:15:49 +0000 (17:15 -0700)
committerWesleyWong-972 <wesleycwong@gmail.com>
Tue, 24 Mar 2026 00:15:49 +0000 (17:15 -0700)
Kousha likes more

src/main/java/frc/robot/constants/swerve/DriveConstants.java
src/main/java/frc/robot/subsystems/shooter/Shooter.java

index 5cb0da5aaec69ea33a35fc08f496dcf8229fbfd4..dc2d172d95632c3cbd3bd8031d65ff5b440a4f18 100644 (file)
@@ -147,10 +147,10 @@ public class DriveConstants {
     
         /* Drive Motor PID Values */
         public static final double[] P_VALUES = {
-            0.1,
-            0.1,
-            0.1,
-            0.1
+            0.3,
+            0.3,
+            0.3,
+            0.3
         };
         public static final double[] I_VALUES = {
             0,
@@ -188,7 +188,7 @@ public class DriveConstants {
         // Open loop prevents throttle from changing too quickly.
         // It will limit it to time given (in seconds) to go from zero to full throttle.
         // A small open loop ramp (0.25) helps with tread wear, tipping, etc
-        public static final double OPEN_LOOP_RAMP = 0.25;
+        public static final double OPEN_LOOP_RAMP = 0.1;
     
         public static final double WHEEL_CIRCUMFERENCE = 2*Math.PI*WHEEL_RADIUS;
     
index 5e751e2e5409a74c54fe4d3c09b631d96f04c49d..8565201a138871c2f89bdf3ac3c8ce11fac37635 100644 (file)
@@ -38,7 +38,7 @@ public class Shooter extends SubsystemBase implements ShooterIO {
         updateInputs();
         
         TalonFXConfiguration config = new TalonFXConfiguration();
-        config.Slot0.kP = 1.0; //tune p value
+        config.Slot0.kP = 0.5; //0.5 to stop fighting
         config.Slot0.kI = 0;
         config.Slot0.kD = 0.0;
         config.Slot0.kV = 0.125; //Maximum rps = 100 --> 12V/100rps