Skip to content

Commit 4f1c02d

Browse files
YES IT WORKS
1 parent 5509869 commit 4f1c02d

File tree

2 files changed

+246
-236
lines changed

2 files changed

+246
-236
lines changed

src/main/java/org/carlmontrobotics/Constants.java

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,8 @@ public static final class Drivetrainc {
278278
public static final boolean[] driveInversion = (CONFIG.isSwimShady()
279279
? new boolean[] { false, false, false, false }
280280
: new boolean[] { true, false, true, false });
281-
public static final boolean[] turnInversion = { true, true, true, true };
281+
public static final boolean[] turnInversion =
282+
{false, false, true, true};
282283
// kS
283284
public static final double[] kForwardVolts = { 0.26744, 0.31897, 0.27967, 0.2461 };
284285
public static final double[] kBackwardVolts = kForwardVolts;
@@ -317,15 +318,23 @@ public static final class Drivetrainc {
317318

318319
// #region Ports
319320

320-
public static final int driveFrontLeftPort = CONFIG.isSwimShady() ? 8 : 11; //
321-
public static final int driveFrontRightPort = CONFIG.isSwimShady() ? 13 : 19; //
322-
public static final int driveBackLeftPort = CONFIG.isSwimShady() ? 5 : 14; //
323-
public static final int driveBackRightPort = CONFIG.isSwimShady() ? 11 : 17; // correct
324-
325-
public static final int turnFrontLeftPort = CONFIG.isSwimShady() ? 7 : 12; //
326-
public static final int turnFrontRightPort = CONFIG.isSwimShady() ? 14 : 20; // 20
327-
public static final int turnBackLeftPort = CONFIG.isSwimShady() ? 6 : 15; //
328-
public static final int turnBackRightPort = CONFIG.isSwimShady() ? 12 : 16; // correct
321+
public static final int driveFrontLeftPort =
322+
CONFIG.isSwimShady() ? 8 : 1; //
323+
public static final int driveFrontRightPort =
324+
CONFIG.isSwimShady() ? 13 : 2; //
325+
public static final int driveBackLeftPort =
326+
CONFIG.isSwimShady() ? 5 : 3; //
327+
public static final int driveBackRightPort =
328+
CONFIG.isSwimShady() ? 11 : 4; // correct
329+
330+
public static final int turnFrontLeftPort =
331+
CONFIG.isSwimShady() ? 7 : 11; //
332+
public static final int turnFrontRightPort =
333+
CONFIG.isSwimShady() ? 14 : 12; // 20
334+
public static final int turnBackLeftPort =
335+
CONFIG.isSwimShady() ? 6 : 13; //
336+
public static final int turnBackRightPort =
337+
CONFIG.isSwimShady() ? 12 : 14; // correct
329338

330339
public static final int canCoderPortFL = CONFIG.isSwimShady() ? 4 : 0;
331340
public static final int canCoderPortFR = CONFIG.isSwimShady() ? 2 : 3;

0 commit comments

Comments
 (0)