Skip to content
This repository has been archived by the owner on Jul 14, 2024. It is now read-only.

Commit

Permalink
Merge pull request #41 from hahahaha-y/main
Browse files Browse the repository at this point in the history
fix: new swerve offset
  • Loading branch information
EvanLuo42 authored Feb 4, 2024
2 parents 52a091f + d215826 commit 70c2fcc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/net/ironpulse/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public static class SwerveConstants {

// Swerve steering gains
private static final Slot0Configs steerGains = new Slot0Configs()
.withKP(100)
.withKP(120)
.withKI(0.2)
.withKD(0.005)
.withKS(0)
Expand Down Expand Up @@ -117,7 +117,7 @@ public static class SwerveConstants {
private static final int FRONT_LEFT_DRIVE_MOTOR_ID = 5;
private static final int FRONT_LEFT_STEER_MOTOR_ID = 3;
private static final int FRONT_LEFT_ENCODER_ID = 9;
private static final double FRONT_LEFT_ENCODER_OFFSET = 0.186035;
private static final double FRONT_LEFT_ENCODER_OFFSET = 0.153809;
// private static final double FRONT_LEFT_ENCODER_OFFSET = 0;

private static final Measure<Distance> frontLeftXPos = Meters.of(0.5);
Expand All @@ -127,7 +127,7 @@ public static class SwerveConstants {
private static final int FRONT_RIGHT_DRIVE_MOTOR_ID = 2;
private static final int FRONT_RIGHT_STEER_MOTOR_ID = 7;
private static final int FRONT_RIGHT_ENCODER_ID = 21;
private static final double FRONT_RIGHT_ENCODER_OFFSET = 0.379395;
private static final double FRONT_RIGHT_ENCODER_OFFSET = 0.381592;
// private static final double FRONT_RIGHT_ENCODER_OFFSET = 0;

private static final Measure<Distance> frontRightXPos = Meters.of(0.5);
Expand All @@ -137,7 +137,7 @@ public static class SwerveConstants {
private static final int BACK_LEFT_DRIVE_MOTOR_ID = 15;
private static final int BACK_LEFT_STEER_MOTOR_ID = 14;
private static final int BACK_LEFT_ENCODER_ID = 20;
private static final double BACK_LEFT_ENCODER_OFFSET = 0.165771;
private static final double BACK_LEFT_ENCODER_OFFSET = 0.162598;
// private static final double BACK_LEFT_ENCODER_OFFSET = 0;

private static final Measure<Distance> backLeftXPos = Meters.of(-0.5);
Expand Down

0 comments on commit 70c2fcc

Please sign in to comment.