diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2005-04-27 03:16:17 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2005-04-27 03:16:17 +0000 |
commit | 3040c033edc129762bc47730ba11ebe676d79518 (patch) | |
tree | c4c288d2162d93adf2bb5bfb4a7a47425dd0c73d /xgps.c | |
parent | 0f7cafe067ee6ece9ba7a3996dde8d6ba41868d6 (diff) | |
download | gpsd-3040c033edc129762bc47730ba11ebe676d79518.tar.gz |
O command now reports speeds in meters/sec, making the O report all SI units.
Diffstat (limited to 'xgps.c')
-rw-r--r-- | xgps.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -43,9 +43,9 @@ struct unit_t { float factor; }; static struct unit_t speedtable[] = { - {"knots", 1}, - {"mph", KNOTS_TO_MPH}, - {"kph", KNOTS_TO_KPH}, + {"knots", 1/KNOTS_TO_KPH}, + {"mph", MPS_TO_MPH}, + {"kph", MPS_TO_KPH}, }, *speedunits = speedtable; static struct unit_t alttable[] = { {"feet", METERS_TO_FEET}, |