test ver (get more data from GPS)

Dependents:   sample_GPS_GYSFDMAXB_edite_by_asha GPSDRV8833CanSat

Files at this revision

API Documentation at this revision

Comitter:
asha_ndf
Date:
Tue Oct 12 14:58:12 2021 +0000
Parent:
3:0ad6cc87d7cd
Commit message:
fix int double;

Changed in this revision

getGPS.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 0ad6cc87d7cd -r e1e7bfab1993 getGPS.cpp
--- a/getGPS.cpp	Mon Oct 11 13:24:58 2021 +0000
+++ b/getGPS.cpp	Tue Oct 12 14:58:12 2021 +0000
@@ -63,8 +63,8 @@
         gpstime = w_time;
         int latitude_dd = (int)(raw_latitude / 100);
         int longitude_dd = (int)(raw_longitude / 100);
-        int latitude_md = (raw_latitude - latitude_dd * 100) / 60;
-        int longitude_md = (raw_longitude - longitude_dd * 100) / 60;
+        double latitude_md = (raw_latitude - latitude_dd * 100) / 60;
+        double longitude_md = (raw_longitude - longitude_dd * 100) / 60;
         latitude = latitude_dd + latitude_md;
         longitude = longitude_dd + longitude_md;
         flag1 = 1;