GPS NEMA String parser library. Only supports SkyTraq Venus chip at this time.
Dependents: MTDOT-EVB-LinkCheck-AL MTDOT-BOX-EVB-Factory-Firmware-LIB-108 TelitSensorToCloud mDot_sensor_to_cloud ... more
Revision 11:73e776e41d23, committed 2017-08-10
- Comitter:
- rklaassen
- Date:
- Thu Aug 10 12:04:29 2017 -0500
- Parent:
- 10:465f9db415ea
- Child:
- 12:179474537b42
- Commit message:
- Fixed GPS not detected bug
Changed in this revision
| GPSPARSER.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/GPSPARSER.cpp Mon Jan 11 11:42:19 2016 -0600
+++ b/GPSPARSER.cpp Thu Aug 10 12:04:29 2017 -0500
@@ -91,7 +91,7 @@
_getSentenceThread.signal_wait(START_THREAD);
//printf("GPS starting\r\n");
-
+ for(int i = 0; i < 10; i++){
_gps_uart->rxClear();
_gps_uart->write(init_gps, sizeof(init_gps));
while (! _gps_uart->readable())
@@ -112,10 +112,12 @@
//printf("read char %#X\r\n", chk_char);
if (chk_char == 0x83) {
_gps_detected = true;
+ break;
}
}
}
-
+ osDelay(50);
+}
//printf("GPS detected %s\r\n", _gps_detected ? "true" : "false");
if (! _gps_detected) {