Skip to content

Commit f2b775b

Browse files
committed
add getter for type in SweveModule
1 parent 6fa5479 commit f2b775b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/main/java/org/carlmontrobotics/lib199/swerve/SwerveModule.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@ public SwerveModule(SwerveConfig config, ModuleType type, CANSparkMax drive, CAN
118118
SendableRegistry.addLW(this, "SweverModule", type.toString());
119119
}
120120

121+
public ModuleType getType() {
122+
return type;
123+
}
124+
121125
private double prevTurnVelocity = 0;
122126
public void periodic() {
123127
double measuredAngleDegs = getModuleAngle();

0 commit comments

Comments
 (0)