Mbed library to handle GPS data reception and parsing

Dependents:   GPS_U-blox_NEO-6M_Code

Features

  • All positionning parameters are contained into a global data structure.
  • Automatic nema string parsing and data structure update.
    • GSA,GGA,VTG and RMC
  • Convert latitude and longitude to decimal value.
  • Converts latittude,longitude and altitude to ECEF coordinates.

Planed developement

  • Test library for RTOS use.
  • Complete the nema parsing decoders (couple of parameters are not parsed yet and not present in the data structure).
  • Add conversion tool to get ENU coordinates.
Revision:
3:20f8faf2ad18
Parent:
2:72ac4d7044a7
--- a/Decoders/GPGSAdecoder.hpp	Sun Feb 14 05:55:38 2016 +0000
+++ b/Decoders/GPGSAdecoder.hpp	Mon Feb 15 00:42:32 2016 +0000
@@ -1,5 +1,6 @@
 #include "mbed.h"
 #include "mbedGPSDefs.h"
+#include "DecodersUtils.h"
 
 void DecodeGPGSA(char * tokenStr,GPSInfo& data)
 {
@@ -7,7 +8,8 @@
     char *rest; // to point to the rest of the string after token extraction.
     char *token; // to point to the actual token returned.
     char *ptr = tokenStr; // make q point to start of hello.
-    token = strtok_r(ptr, ",",&rest);
+    //token = strtok_r(ptr, ",",&rest);
+    token = strtok_single(ptr, ",");
     while (token != NULL)
     {
         //Debuging.printf("DEBUG ... PARAM_CNT:%d\n",parameterCount);
@@ -32,6 +34,7 @@
         }
         parameterCount++;
         ptr = rest; // rest contains the left over part..assign it to ptr.
-        token = strtok_r(ptr, ",",&rest);
+        //token = strtok_r(ptr, ",",&rest);
+        token = strtok_single(NULL, ",");
     }
 }
\ No newline at end of file