Skip to content

Make RPM an alias of RotationsPerMinute#8595

Open
gavinskycastle wants to merge 3 commits intowpilibsuite:mainfrom
gavinskycastle:add-rpm-unabbreviated
Open

Make RPM an alias of RotationsPerMinute#8595
gavinskycastle wants to merge 3 commits intowpilibsuite:mainfrom
gavinskycastle:add-rpm-unabbreviated

Conversation

@gavinskycastle
Copy link

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.

@gavinskycastle gavinskycastle requested a review from a team as a code owner January 25, 2026 04:30
@github-actions github-actions bot added the component: wpiunits Java units library label Jan 25, 2026
Copy link
Contributor

@KangarooKoala KangarooKoala left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice change! I'm not an official WPILib maintainer, but this seems like a nice QOL improvement.

Also, thanks for checking whether C++ also needs to be modified! C++ units and Java units are extremely different, so most changes to one won't apply to the other, but it's still awesome that you double-checked.

@KangarooKoala
Copy link
Contributor

The Java format and wpiformat CI logs are saying that you need to remove the whitespace on the blank line between RotationsPerMinute and RPM.

Copy link
Contributor

@KangarooKoala KangarooKoala left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems generally alright to me, but you'll need approval from an official WPILib maintainer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component: wpiunits Java units library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants