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
diff -r 72ac4d7044a7 -r 20f8faf2ad18 Decoders/DecodersUtils.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Decoders/DecodersUtils.h	Mon Feb 15 00:42:32 2016 +0000
@@ -0,0 +1,29 @@
+#ifndef _DECODERSUTILS_H_
+#define _DECODERSUTILS_H_
+
+#include "mbed.h"
+
+char * strtok_single(char * str, char const * delims)
+{
+  static char  * src = NULL;
+  char  *  p,  * ret = 0;
+
+  if (str != NULL)
+    src = str;
+
+  if (src == NULL)
+    return NULL;
+
+  if ((p = strpbrk (src, delims)) != NULL) {
+    *p  = 0;
+    ret = src;
+    src = ++p;
+
+  } else if (*src) {
+    ret = src;
+    src = NULL;
+  }
+
+  return ret;
+}
+#endif
\ No newline at end of file