Minor change to remove something that didn't make any difference
This commit is contained in:
@@ -196,12 +196,7 @@ public class SwerveModule {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public double getTurningEncoderPosition() {
|
public double getTurningEncoderPosition() {
|
||||||
return MathUtil.inputModulus(
|
return turningRelativeEncoder.getPosition() * (ModuleConstants.kIsEncoderInverted ? -1 : 1);
|
||||||
turningRelativeEncoder.getPosition(),
|
|
||||||
0,
|
|
||||||
2 * Math.PI
|
|
||||||
);
|
|
||||||
//return turningRelativeEncoder.getPosition() * (ModuleConstants.kIsEncoderInverted ? -1 : 1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void resetEncoders() {
|
public void resetEncoders() {
|
||||||
|
|||||||
Reference in New Issue
Block a user