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
Diff: GPSPARSER.cpp
- Revision:
- 2:fbc098f1e7c0
- Parent:
- 1:58c50bb3c60c
- Child:
- 3:662aa99c5266
--- a/GPSPARSER.cpp Wed Sep 16 14:01:08 2015 +0000
+++ b/GPSPARSER.cpp Wed Sep 16 14:04:51 2015 +0000
@@ -48,7 +48,7 @@
_timestamp.tm_isdst = -1; // time is UTC so no Daylight savings time
_gps_status = false;
- _fix_status = 0;
+ _fix_status = 1;
_num_satellites =0;
_gps_detected = false;
@@ -57,9 +57,11 @@
_getSentenceThread.signal_set(START_THREAD);
printf("Started Nema Sentence Thread\r\n");
}
- else
+ else{
printf("No GPS detected");
-
+ _fix_status = 1;
+ }
+
return;
}