From 7cd3790c7c0209d2242913e7f1c7306201984b07 Mon Sep 17 00:00:00 2001 From: Gavin P <62412298+gavinskycastle@users.noreply.github.com> Date: Fri, 6 Feb 2026 21:47:08 -0800 Subject: [PATCH] [wpiunits] Make RPM an alias of RotationsPerMinute (#8595) Currently the only name for this unit is `RPM`. This caused a bit of confusion for a couple of my team members when we failed to find an RPM unit, assuming it would be named `RotationsPerMinute` as is the standard for almost all other units, such as `RotationsPerSecond`. No corresponding changes have been made to wpilibc as it seems to already work this way, with `rpm` being the abbreviation for `revolutions_per_minute`. --- wpiunits/src/main/java/edu/wpi/first/units/Units.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/wpiunits/src/main/java/edu/wpi/first/units/Units.java b/wpiunits/src/main/java/edu/wpi/first/units/Units.java index 04b1c5f990..67cef3bbe9 100644 --- a/wpiunits/src/main/java/edu/wpi/first/units/Units.java +++ b/wpiunits/src/main/java/edu/wpi/first/units/Units.java @@ -166,7 +166,13 @@ public final class Units { * A unit of angular velocity equivalent to spinning at a rate of one {@link #Rotations Rotation} * per {@link #Minute}. Motor spec sheets often list maximum speeds in terms of RPM. */ - public static final AngularVelocityUnit RPM = Rotations.per(Minute); + public static final AngularVelocityUnit RotationsPerMinute = Rotations.per(Minute); + + /** + * A unit of angular velocity equivalent to spinning at a rate of one {@link #Rotations Rotation} + * per {@link #Minute}. Motor spec sheets often list maximum speeds in terms of RPM. + */ + public static final AngularVelocityUnit RPM = RotationsPerMinute; // alias /** * The standard SI unit of angular velocity, equivalent to spinning at a rate of one {@link