Library for the EM-406 GPS module

Dependents:   MSCUsbHost

Fork of GPS by Simon Ford

Files at this revision

API Documentation at this revision

Comitter:
AlexF64
Date:
Fri May 09 18:25:38 2014 +0000
Parent:
0:15611c7938a3
Commit message:
Corrected latitude misread issue

Changed in this revision

GPS.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/GPS.cpp	Tue Jun 08 14:10:27 2010 +0000
+++ b/GPS.cpp	Fri May 09 18:25:38 2014 +0000
@@ -48,7 +48,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);
                 minutes = longitude - (degrees * 100.0f);
                 longitude = degrees + minutes / 60.0f;
                 return 1;