Open UPC-PaalDriveklepp opened 9 months ago
why knot?
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... :walking: :house:
I think you have a good idea =) More units!
I'll consider adding them probably in their own header as a special unit of the length dimension
Would it be a good idea to implement nautical mile and knots? That is,
nmi
andkn
orkt
?