Skip to content

Commit

Permalink
Update drive wheel radius
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesmackenzie committed Mar 10, 2024
1 parent 4b0d6b1 commit c38c02e
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/main/java/frc/robot/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ public static enum Mode {
}

public static final class FeatureFlags {
public static final boolean runVision = true;
public static final boolean runVision = false;

public static final boolean runIntake = true;
public static final boolean runScoring = true;
public static final boolean runEndgame = true;
public static final boolean runIntake = false;
public static final boolean runScoring = false;
public static final boolean runEndgame = false;
public static final boolean runDrive = true;

public static final boolean enableLEDS = false;
Expand Down Expand Up @@ -310,7 +310,7 @@ public static final class TunerConstants {

private static final double kDriveGearRatio = 6.122448979591837;
private static final double kSteerGearRatio = 21.428571428571427;
private static final double kWheelRadiusInches = 2;
private static final double kWheelRadiusInches = 1.925;

private static final boolean kSteerMotorReversed = true;
private static final boolean kInvertLeftSide = false;
Expand Down Expand Up @@ -386,6 +386,9 @@ public static final class TunerConstants {
private static final double kFrontLeftXPosInches = -10.375;
private static final double kFrontLeftYPosInches = -10.375;

public static final double kModuleRadiusMeters =
Units.inchesToMeters(Math.hypot(kFrontLeftXPosInches, kFrontLeftYPosInches));

private static final SwerveModuleConstants FrontLeft =
ConstantCreator.createModuleConstants(
kFrontLeftSteerMotorId,
Expand Down

0 comments on commit c38c02e

Please sign in to comment.