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.
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 |
--- 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;