Updated ref
Dependencies: FXOS8700Q-driver MODSERIAL
Fork of AAT_LWM2M_K64F by
Diff: resources.h
- Revision:
- 54:5f8d9f40acb8
- Parent:
- 53:ff25489c63af
- Child:
- 55:381a4d2fdebb
diff -r ff25489c63af -r 5f8d9f40acb8 resources.h --- a/resources.h Mon Jan 23 05:32:42 2017 +0000 +++ b/resources.h Mon Jan 23 05:46:42 2017 +0000 @@ -426,18 +426,18 @@ void parse(char *cmd, int n) { char ns, ew, tf, status, mode; - int fq, nst, fix, date, timefix, pstino; // fix quality, Number of satellites being tracked, 3D fix - float latitude, longitude, speed, altitude, eastprj, northprj, upprj, blength, bcourse; + int fq, nst, fix, date, pstino; // fix quality, Number of satellites being tracked, 3D fix + float latitude, longitude, speed, timefix, altitude, eastprj, northprj, upprj, blength, bcourse; // Global Positioning System Fix Data if(strncmp(cmd,"$GPGGA", 6) == 0) { - sscanf(cmd, "$GPGGA,%d,%f,%c,%f,%c,%d,%d,%f", &timefix, &latitude, &ns, &longitude, &ew, &fq, &nst, &altitude); + sscanf(cmd, "$GPGGA,%f,%f,%c,%f,%c,%d,%d,%f", &timefix, &latitude, &ns, &longitude, &ew, &fq, &nst, &altitude); //output.printf("GPGGA Fix taken at: %d, Latitude: %f %c, Longitude: %f %c, Fix quality: %d, Number of sat: %d, Altitude: %f M\n", timefix, latitude, ns, longitude, ew, fq, nst, altitude); gnss_scan.latitude = latitude; gnss_scan.longitude = longitude; //gnss_scan.date = date; - gnss_scan.time = timefix; + // gnss_scan.time = timefix; gnss_scan.altitude = altitude; gnss_scan.fix_quality = fq; gnss_scan.numsat = nst;