We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4ca730a + cc72334 commit 4b55fefCopy full SHA for 4b55fef
SwerveBot/swervemodule.py
@@ -94,7 +94,7 @@ def getPosition(self) -> wpimath.kinematics.SwerveModulePosition:
94
:returns: The current position of the module.
95
"""
96
return wpimath.kinematics.SwerveModulePosition(
97
- self.driveEncoder.getRate(),
+ self.driveEncoder.getDistance(),
98
wpimath.geometry.Rotation2d(self.turningEncoder.getDistance()),
99
)
100
0 commit comments