From 80b0197fe462bf672e8c697a406e8eafa670192d Mon Sep 17 00:00:00 2001 From: Antoine PerreaultE Date: Wed, 14 Feb 2024 17:54:22 -0500 Subject: [PATCH] --- src/main/deploy/swerve/modules/backleft.json | 2 +- src/main/deploy/swerve/modules/backright.json | 2 +- src/main/deploy/swerve/modules/frontleft.json | 2 +- src/main/deploy/swerve/modules/frontright.json | 6 +++--- src/main/java/frc/robot/Constants.java | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/main/deploy/swerve/modules/backleft.json b/src/main/deploy/swerve/modules/backleft.json index a9a2d30..0359ff1 100644 --- a/src/main/deploy/swerve/modules/backleft.json +++ b/src/main/deploy/swerve/modules/backleft.json @@ -3,7 +3,7 @@ "front": -12.375, "left": 12.375 }, - "absoluteEncoderOffset": 80.332, + "absoluteEncoderOffset": 120.762, "drive": { "type": "sparkmax", "id": 8, diff --git a/src/main/deploy/swerve/modules/backright.json b/src/main/deploy/swerve/modules/backright.json index 679f08d..710a53a 100644 --- a/src/main/deploy/swerve/modules/backright.json +++ b/src/main/deploy/swerve/modules/backright.json @@ -3,7 +3,7 @@ "front": -12.375, "left": -12.375 }, - "absoluteEncoderOffset": 28.74, + "absoluteEncoderOffset": 96.768, "drive": { "type": "sparkmax", "id": 11, diff --git a/src/main/deploy/swerve/modules/frontleft.json b/src/main/deploy/swerve/modules/frontleft.json index 3c37753..e7c7240 100644 --- a/src/main/deploy/swerve/modules/frontleft.json +++ b/src/main/deploy/swerve/modules/frontleft.json @@ -3,7 +3,7 @@ "front": 12.375, "left": 12.375 }, - "absoluteEncoderOffset": 98.438, + "absoluteEncoderOffset": 170.244, "drive": { "type": "sparkmax", "id": 2, diff --git a/src/main/deploy/swerve/modules/frontright.json b/src/main/deploy/swerve/modules/frontright.json index 87f8cd9..fac40c7 100644 --- a/src/main/deploy/swerve/modules/frontright.json +++ b/src/main/deploy/swerve/modules/frontright.json @@ -3,15 +3,15 @@ "front": 12.375, "left": -12.375 }, - "absoluteEncoderOffset": 17.227, + "absoluteEncoderOffset": 198.105, "drive": { "type": "sparkmax", - "id": 17, + "id": 18, "canbus": null }, "angle": { "type": "sparkmax", - "id": 18, + "id": 17, "canbus": null }, "inverted": { diff --git a/src/main/java/frc/robot/Constants.java b/src/main/java/frc/robot/Constants.java index 2b43ab2..45fada4 100644 --- a/src/main/java/frc/robot/Constants.java +++ b/src/main/java/frc/robot/Constants.java @@ -27,8 +27,8 @@ public class Constants { public static int grimpeurg = 27; // Swerve - public static int AvantDroitDrive = 17; - public static int AvantDroitAngle = 18; + public static int AvantDroitDrive = 18; + public static int AvantDroitAngle = 17; public static int AvantGaucheDrive = 2; public static int AvantGaucheAngle = 3; public static int ArriereDroitDrive = 11;