From 2744991771c0e2d0d9d06a12e2b5dd7dcaf9e78e Mon Sep 17 00:00:00 2001 From: "Ashray._.g" <43589795+Ashray-g@users.noreply.github.com> Date: Fri, 16 Dec 2022 05:48:20 -0800 Subject: [PATCH] [wpimath] Fix docs in SwerveModulePosition (#4825) Changed m/s and speeds to m and distance. --- .../edu/wpi/first/math/kinematics/SwerveModulePosition.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wpimath/src/main/java/edu/wpi/first/math/kinematics/SwerveModulePosition.java b/wpimath/src/main/java/edu/wpi/first/math/kinematics/SwerveModulePosition.java index 43b787d404..cdd7834521 100644 --- a/wpimath/src/main/java/edu/wpi/first/math/kinematics/SwerveModulePosition.java +++ b/wpimath/src/main/java/edu/wpi/first/math/kinematics/SwerveModulePosition.java @@ -15,7 +15,7 @@ public class SwerveModulePosition implements Comparable { /** Angle of the module. */ public Rotation2d angle = Rotation2d.fromDegrees(0); - /** Constructs a SwerveModulePosition with zeros for speed and angle. */ + /** Constructs a SwerveModulePosition with zeros for distance and angle. */ public SwerveModulePosition() {} /** @@ -44,7 +44,7 @@ public class SwerveModulePosition implements Comparable { /** * Compares two swerve module positions. One swerve module is "greater" than the other if its - * speed is higher than the other. + * distance is higher than the other. * * @param other The other swerve module. * @return 1 if this is greater, 0 if both are equal, -1 if other is greater. @@ -57,6 +57,6 @@ public class SwerveModulePosition implements Comparable { @Override public String toString() { return String.format( - "SwerveModulePosition(Distance: %.2f m/s, Angle: %s)", distanceMeters, angle); + "SwerveModulePosition(Distance: %.2f m, Angle: %s)", distanceMeters, angle); } }