[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`.
This commit is contained in:
Gavin P
2026-02-06 21:47:08 -08:00
committed by GitHub
parent 664484306c
commit 7cd3790c7c

View File

@@ -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