constants reworked (needs testing, which will be done with odometry testing)

This commit is contained in:
aarav18
2022-01-20 19:00:42 -07:00
parent 93f83986e5
commit bfa044e340
3 changed files with 36 additions and 16 deletions
@@ -100,7 +100,7 @@ public class SwerveModule extends SubsystemBase {
* @return The current state of the module.
*/
public SwerveModuleState getState() {
return new SwerveModuleState(driveMotor.getSelectedSensorVelocity(), new Rotation2d(canCoder.getPosition()));
return new SwerveModuleState(driveMotor.getSelectedSensorVelocity() * SwerveDriveConstants.INCHES_PER_TICK * SwerveDriveConstants.METERS_PER_INCH * 10, new Rotation2d(canCoder.getPosition()));
}
}