diff options
author | Stanley Huang <stanleyhuangyc@gmail.com> | 2013-12-15 22:34:46 +1100 |
---|---|---|
committer | Stanley Huang <stanleyhuangyc@gmail.com> | 2013-12-15 22:34:46 +1100 |
commit | 2e009a031d1fe4aff95da3bc1b981d9ace697dd3 (patch) | |
tree | 4f01eb3fd1fd9c89f221b0e1afa211e0b439edc6 /megalogger | |
parent | 5837da971a01b8853b3f04809844c898eb79d5a3 (diff) | |
download | 2021-arduino-obd-2e009a031d1fe4aff95da3bc1b981d9ace697dd3.tar.gz 2021-arduino-obd-2e009a031d1fe4aff95da3bc1b981d9ace697dd3.tar.bz2 2021-arduino-obd-2e009a031d1fe4aff95da3bc1b981d9ace697dd3.zip |
add Data2KML source code
Diffstat (limited to 'megalogger')
-rw-r--r-- | megalogger/megalogger.ino | 2 |
1 files changed, 1 insertions, 1 deletions
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 |