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

Support for maritime units? #127

Open
UPC-PaalDriveklepp opened this issue Sep 19, 2023 · 4 comments
Open

Support for maritime units? #127

UPC-PaalDriveklepp opened this issue Sep 19, 2023 · 4 comments

Comments

@UPC-PaalDriveklepp
Copy link

Would it be a good idea to implement nautical mile and knots? That is, nmi and kn or kt?

@ypearson
Copy link

why knot?

@UPC-PaalDriveklepp
Copy link
Author

UPC-PaalDriveklepp commented Sep 20, 2023

NMEA RMC messages contain the speed in knots, and knots are closely related to nautical miles. It is just a velocity and is easily convertible.

It would be nice to be able to do:

SI::knots_t parseNmeaSpeed() { /* implemenmtation */ }
void sendSpeed(const SI::metre_per_second_t& speed) { /* implemenmtation */ }

sendSpeed(parseNmeaSpeed(nmeaString));

Not sure exactly how it would look. Maybe it would also need a SI::unit_cast<>

Edit: @ypearson I think I got the joke... 🚶 🏠

@ypearson
Copy link

I think you have a good idea =) More units!

@bernedom
Copy link
Owner

I'll consider adding them probably in their own header as a special unit of the length dimension

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

No branches or pull requests

3 participants