Skip to content

Commit 62d753a

Browse files
author
NoahAndrews
committed
Clarify which motor the pinion is attached to
1 parent 6c2be1a commit 62d753a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/frc/robot/Constants.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public static final class ModuleConstants {
6565
// The MAXSwerve module can be configured with one of three pinion gears: 12T, 13T, or 14T.
6666
// This changes the drive speed of the module (a pinion gear with more teeth will result in a
6767
// robot that drives faster).
68-
public static final int kMotorPinionTeeth = 14;
68+
public static final int kDrivingMotorPinionTeeth = 14;
6969

7070
// Invert the turning encoder, since the output shaft rotates in the opposite direction of
7171
// the steering motor in the MAXSwerve Module.
@@ -76,7 +76,7 @@ public static final class ModuleConstants {
7676
public static final double kWheelDiameterMeters = 0.0762;
7777
public static final double kWheelCircumferenceMeters = kWheelDiameterMeters * Math.PI;
7878
// 45 teeth on the wheel's bevel gear, 22 teeth on the first-stage spur gear, 15 teeth on the bevel pinion
79-
public static final double kDrivingMotorReduction = (45.0 * 22) / (kMotorPinionTeeth * 15);
79+
public static final double kDrivingMotorReduction = (45.0 * 22) / (kDrivingMotorPinionTeeth * 15);
8080
public static final double kDriveWheelFreeSpeedRps = (kDrivingMotorFreeSpeedRps * kWheelCircumferenceMeters)
8181
/ kDrivingMotorReduction;
8282

0 commit comments

Comments
 (0)