Changes Lat & Long Binary variable to be 32 bit integers representing micro-degrees.
Fork of lib_gps by
Revision 6:1a45aa41ec15, committed 2016-08-15
- Comitter:
- jknapp_smtc
- Date:
- Mon Aug 15 23:21:44 2016 +0000
- Parent:
- 5:f06be7a1f427
- Commit message:
- Corrected un-fixed values
Changed in this revision
gps.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/gps.cpp Mon Aug 15 22:52:52 2016 +0000 +++ b/gps.cpp Mon Aug 15 23:21:44 2016 +0000 @@ -1,8 +1,8 @@ #include "mbed.h" #include "gps.h" -#define LAT_UNFIXED 0xaaaaa9 -#define LONG_UNFIXED 0x355554e +#define LAT_UNFIXED 0x07270e00 +#define LONG_UNFIXED 0x47868c00 const char NmeaDataTypeGPGGA[] = "GPGGA"; //const char NmeaDataTypeGPGSA[] = "GPGSA"; @@ -237,7 +237,7 @@ LongitudeBinary32 = (int)(Longitude * 1e6); //printf("binary: %d %d\r\n", LatitudeBinary32, LongitudeBinary32); - if (LatitudeBinary32 == LAT_UNFIXED && LongitudeBinary32 == LONG_UNFIXED) // TODO JOE find correct values + if (LatitudeBinary32 == LAT_UNFIXED && LongitudeBinary32 == LONG_UNFIXED) have_fix = false; else have_fix = true;