[ gpsdrive ] Miles per hour

Paul Martin pm at debian.org
Mon Jan 12 07:18:08 AKST 2009


On Mon, Jan 05, 2009 at 09:25:25PM +0100, Guenther Meyer wrote:

> hmm, yes, I had some other changes in my mind when I wrote this part.
> I considered to change the gpsdrive code so that the variables always contain 
> metric values, and that the conversion to something else is only done when 
> needed for display. this should save some conversions during the 
> calculations, I guess...

Trip Odometer also works in kilometres whilst claiming to be in miles. The
problem is that some measures are held internally in the preferred units,
and some are in the native units. This causes confusion in the code.

I'd strongly suggest consistently working internally in SI units -- metres
(not km) and metres/second (not kph) -- with conversion to the user's
preferred units only at the point of output.

-- 
Paul Martin <pm at debian.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.gpsdrivers.org/pipermail/gpsdrive/attachments/20090112/bb3030a8/attachment.bin>


More information about the GPSdrive mailing list