Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 2:76dcabe38d12, committed 2020-09-09
- Comitter:
- MatsumotoKouki
- Date:
- Wed Sep 09 14:03:50 2020 +0000
- Parent:
- 0:030ffb18f36d
- Commit message:
- int changed to double
Changed in this revision
getGPS.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 030ffb18f36d -r 76dcabe38d12 getGPS.cpp --- a/getGPS.cpp Sat Jul 07 08:06:16 2018 +0000 +++ b/getGPS.cpp Wed Sep 09 14:03:50 2020 +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;