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

Files at this revision

API Documentation at this revision

Comitter:
falingtrea
Date:
Thu Oct 22 19:39:17 2015 +0000
Parent:
2:fbc098f1e7c0
Child:
4:ae35903cd8d2
Commit message:
V1.02 Fixed status value for no GPS detected. Increased report rate of GSV, GGA, and GSA NEMA Sentences

Changed in this revision

GPSPARSER.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/GPSPARSER.cpp	Wed Sep 16 14:04:51 2015 +0000
+++ b/GPSPARSER.cpp	Thu Oct 22 19:39:17 2015 +0000
@@ -21,6 +21,8 @@
  * limitations under the License.
  *
  * 09/16/15 TAB V1.01 Changed report rate of GGA and GSA NEMA sentences
+ * 09/22/15 TAB V1.02 Fixed status value for no GPS detected. Increased report rate
+ *              of GSV, GGA, and GSA NEMA Sentences
  *
  * TODO: Add speed, compass direction, error (DOP) data. Make init more generic
  */
@@ -58,8 +60,8 @@
         printf("Started Nema Sentence Thread\r\n");
     }
     else{
-        printf("No GPS detected");
-        _fix_status = 1;
+        printf("No GPS detected\r\n");
+        _fix_status = 0;
     }
     
     return;
@@ -75,9 +77,9 @@
     // this code is specific to the Skytraq Venus GPS chip. This code could be re-written to detect another type of
     // GPS device. Maybe read serial port for a specific time and detect $GP from NEMA string
  
-    // Sets Skytraq Venus GPS to output GGA,GSA,GSV every 30 seconds, and RMC every second, no ZDA,GLL,VTG
+    // Sets Skytraq Venus GPS to output GGA,GSA,GSV every 10 seconds, and RMC every second, no ZDA,GLL,VTG
     // setup string for GPS                       GGA  GSA  GSV  GLL  RMC  VTG  ZDA       cksum
-    char init_gps[16] = {0xA0,0xA1,0x00,0x09,0x08,0x1E,0x1E,0x1E,0x00,0x01,0x00,0x00,0x00,0x17,0x0D,0x0A};
+    char init_gps[16] = {0xA0,0xA1,0x00,0x09,0x08,0x0A,0x0A,0x0A,0x00,0x01,0x00,0x00,0x00,0x03,0x0D,0x0A};
     char chk_char;
     uint8_t ret = 0;