Csr location class shows location and satellite information, which supports H13467 + ST F103RB/NXP LCP1549 boards now.
Dependents: CsrLocationDemo CsrLocationDemo
Fork of CsrLocation by
Diff: CsrLocation.cpp
- Revision:
- 13:1d2f2dccc4ee
- Parent:
- 12:5fb829ce6b82
- Child:
- 16:37d3ea06cbb4
--- a/CsrLocation.cpp Tue Nov 04 08:41:25 2014 +0000 +++ b/CsrLocation.cpp Tue Nov 04 14:23:45 2014 +0000 @@ -584,7 +584,6 @@ int valid; int i, cnt; - if (strncmp((char *)serialPkt, pNmeaGga, strlen(pNmeaGga)) == 0) { cnt = 0; for (i = 0; i < (int)strlen((char *)serialPkt); i++) { @@ -603,7 +602,7 @@ if (valid == 0) { return; } - + /* Parse GPGGA and output position information */ memset(&pos, 0, sizeof(tLocPosResp)); if (sscanf((char *)serialPkt, "GPGGA,%f,%lf,%c,%lf,%c,%d,%d,%f,%lf", &pos.u.utcTime, &pos.lat, &ns, &pos.lon, &ew, &valid, &svUsed, &horDop,