From 2e009a031d1fe4aff95da3bc1b981d9ace697dd3 Mon Sep 17 00:00:00 2001 From: Stanley Huang Date: Sun, 15 Dec 2013 22:34:46 +1100 Subject: add Data2KML source code --- megalogger/megalogger.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'megalogger') diff --git a/megalogger/megalogger.ino b/megalogger/megalogger.ino index 43d1f5a..15da969 100644 --- a/megalogger/megalogger.ino +++ b/megalogger/megalogger.ino @@ -332,7 +332,7 @@ private: gps.get_datetime(&date, &time, 0); logData(PID_GPS_TIME, time, date); - int speed = gps.speed() * 1852 / 100 / 1000; + float speed = gps.speed() * 1852 / 100000; logData(PID_GPS_SPEED, speed); // no need to log GPS data when vehicle has not been moving -- cgit v1.2.3