@@ -23,7 +23,7 @@ public static final class LifterConstants {
23
23
24
24
// By default, the encoder in position mode measures rotations at the motor
25
25
// Convert to inches at the final stage
26
- private static final double gearRatioMotorToMechanism = 3.0 / 15 .0 ;
26
+ private static final double gearRatioMotorToMechanism = 3.0 / 5 .0 ;
27
27
private static final Distance sprocketPitchDiameter = Inches .of (1.7567 );
28
28
public static final Distance kPositionConversionFactor =
29
29
sprocketPitchDiameter .times (Math .PI ).times (gearRatioMotorToMechanism );
@@ -46,11 +46,13 @@ public static final class LifterConstants {
46
46
public static final Distance kAllowableHeightError = Inches .of (0.2 );
47
47
48
48
public final class LifterController {
49
- public static final double kS = 0.13 ; // Found empirically 2/22/2025
50
- public static final double kG = 0.194 ; // Found empirically 2/22/2025
49
+ // Found empirically 2/22/2025, then increased by 3x when 3:1 gearing was removed
50
+ public static final double kS = 0.39 ;
51
+ public static final double kG = 0.582 ;
52
+
51
53
public static final double kV = (12.0 - kS ) / maxTheoreticalVelocity .in (MetersPerSecond );
52
54
53
- public static final double kP = 40 .0 ;
55
+ public static final double kP = 10 .0 ;
54
56
public static final double kI = 0.0 ;
55
57
public static final double kD = 0.0 ;
56
58
public static final Constraints kConstraints =
0 commit comments