GPSセンサモジュールの動作確認プログラム
Dependents: sample_GPS_GYSFDMAXB nucleo_sample_GPS_GYSFDMAXB sample_GPS_GYSFDMAXB_for_nucleo CanSat-C
Revision 1:2046f20df896, committed 2018-07-09
- Comitter:
- CanSat_C
- Date:
- Mon Jul 09 08:27:37 2018 +0000
- Parent:
- 0:030ffb18f36d
- Commit message:
- latitude_md, longitude_md?double???
Changed in this revision
getGPS.cpp | Show annotated file Show diff for this revision Revisions of this file |
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;