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.
Diff: getGPS.cpp
- Revision:
- 1:2046f20df896
- Parent:
- 0:030ffb18f36d
--- 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;