wrong calculation of longitude

Dependents:   GPS_HelloWorld GPS_Buzzer_Alert_Helloworld Twitter_GPS_Web_Client_WIZwiki-W7500

Fork of GPS by Boris Adryan

Files at this revision

API Documentation at this revision

Comitter:
eunkyoungkim
Date:
Mon Jul 27 04:55:38 2015 +0000
Parent:
1:1d60e6a0ffd9
Commit message:
wrong calculation value of longitude

Changed in this revision

GPS.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 1d60e6a0ffd9 -r e2b8d86abee3 GPS.cpp
--- a/GPS.cpp	Sat Nov 02 16:17:58 2013 +0000
+++ b/GPS.cpp	Mon Jul 27 04:55:38 2015 +0000
@@ -58,7 +58,7 @@
                 float degrees = trunc(latitude / 100.0f);
                 float minutes = latitude - (degrees * 100.0f);
                 latitude = degrees + minutes / 60.0f;    
-                degrees = trunc(longitude / 100.0f * 0.01f);
+                degrees = trunc(longitude / 100.0f);// * 0.01f);
                 minutes = longitude - (degrees * 100.0f);
                 longitude = degrees + minutes / 60.0f;
                 return 1;