Skip to content

Commit

Permalink
updated back left encoder offset, driver&steer gear ratios, & steer kp
Browse files Browse the repository at this point in the history
  • Loading branch information
earth325 committed Jan 11, 2025
1 parent 0076db0 commit cc7f8a5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/main/java/frc/robot/generated/TunerConstants.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class TunerConstants {
// output type specified by SwerveModuleConstants.SteerMotorClosedLoopOutput
private static final Slot0Configs steerGains =
new Slot0Configs()
.withKP(7)
.withKP(17)
.withKI(0)
.withKD(0.0)
.withKS(0.1)
Expand Down Expand Up @@ -81,13 +81,13 @@ public class TunerConstants {

// Every 1 rotation of the azimuth results in kCoupleRatio drive motor turns;
// This may need to be tuned to your individual robot
/** potential tuning needed */
/** circumference of bot */
private static final double kCoupleRatio = 3.8181818181818183;

/** gear ratios are estimated values, need to be tuned later */
private static final double kDriveGearRatio = 7.363636363636365;
/** */
private static final double kDriveGearRatio = (42.0 / 11.0) * (18.0 / 28.0) * (45.0 / 15.0);

private static final double kSteerGearRatio = 15.42857142857143;
private static final double kSteerGearRatio = 15.43;
private static final Distance kWheelRadius = Inches.of(2.0);

private static final boolean kInvertLeftSide = false;
Expand Down Expand Up @@ -163,7 +163,7 @@ public class TunerConstants {
private static final int kBackLeftDriveMotorId = 5;
private static final int kBackLeftSteerMotorId = 6;
private static final int kBackLeftEncoderId = 11;
private static final Angle kBackLeftEncoderOffset = Rotations.of(0.40408);
private static final Angle kBackLeftEncoderOffset = Rotations.of(0.393311);
private static final boolean kBackLeftSteerMotorInverted = true;
private static final boolean kBackLeftEncoderInverted = false;

Expand Down

0 comments on commit cc7f8a5

Please sign in to comment.