test ver (get more data from GPS)
Dependents: sample_GPS_GYSFDMAXB_edite_by_asha GPSDRV8833CanSat
Diff: getGPS.cpp
- Revision:
- 1:2046f20df896
- Parent:
- 0:030ffb18f36d
diff -r 030ffb18f36d -r 2046f20df896 getGPS.cpp --- a/getGPS.cpp Sat Jul 07 08:06:16 2018 +0000 +++ b/getGPS.cpp Mon Jul 09 08:27:37 2018 +0000 @@ -44,8 +44,8 @@ int longitude_dd = (int)(raw_longitude / 100); /* 座標2(分部分 → 度) */ - 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; /* 座標1 + 2 */ latitude = latitude_dd + latitude_md;