Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(si): add specific power quantity #396

Merged
merged 1 commit into from
Jan 13, 2023

Conversation

swaits
Copy link
Contributor

@swaits swaits commented Jan 10, 2023

Specific power is used to represent a power-to-weight ratio, like in vehicles or human power; as in watts per kilogram or ft-lbf/s per pound.

Added the SpecificPower quantity using the existing Power quantity as a guideline.

For more information on this quantity, please see a description of specific power on Wikipedia.

Co-authored-by: Mike Boutin mike.boutin@gmail.com:

  • Various suggestions from code review (formatting, naming, remove unused units)
  • Formatting for readability.
  • Fix conversion factor used for pounds.
  • Check all units based on the units they are derived from.
  • Add check_units_energy test.

Signed-off-by: Stephen Waits steve@waits.net

Specific power is used to represent a power-to-weight ratio, like in
vehicles or human power; as in watts per kilogram or ft-lbf/s per pound.

Added the `SpecificPower` quantity using the existing `Power` quantity as a guideline.

For more information on this quantity, please see a description of
[specific power](https://en.wikipedia.org/wiki/Power-to-weight_ratio) on Wikipedia.

Co-authored-by: Mike Boutin <mike.boutin@gmail.com>:

 * Various suggestions from code review (formatting, naming, remove unused units)
 * Formatting for readability.
 * Fix conversion factor used for pounds.
 * Check all units based on the units they are derived from.
 * Add `check_units_energy` test.

Signed-off-by: Stephen Waits <steve@waits.net>
@swaits
Copy link
Contributor Author

swaits commented Jan 10, 2023

My repo was a mess. Just re-forked, applied the diff, and consolidated the commit messages. This is exactly what we had arrived at, but in a new PR.

@iliekturtles
Copy link
Owner

Kicked off the tests will do a final review tomorrow and hopefully merge!

@iliekturtles iliekturtles merged commit e50e013 into iliekturtles:master Jan 13, 2023
@iliekturtles
Copy link
Owner

Thanks so much for the PR!

@swaits
Copy link
Contributor Author

swaits commented Jan 14, 2023

Awesome, thanks!

I'm excited to use the published crate in my project soon instead of my fork! 😃

@iliekturtles
Copy link
Owner

I keep planning to do a release, but time always gets away from me. I'll see if I can make this week the week!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants