test ver (get more data from GPS)
Dependents: sample_GPS_GYSFDMAXB_edite_by_asha GPSDRV8833CanSat
Diff: getGPS.cpp
- Revision:
- 4:e1e7bfab1993
- Parent:
- 3:0ad6cc87d7cd
--- 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;