mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user