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:
0:0c1aa5906cef
Child:
2:72ac4d7044a7
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/GPS.h	Wed Aug 06 01:37:39 2014 +0000
@@ -0,0 +1,35 @@
+#ifndef _MBED_GPS_H_
+#define _MBED_GPS_H_
+#include "mbedGPSDefs.h"
+#include "mbed.h"
+
+
+
+    
+    
+class GPS : RawSerial{
+    public:
+    GPS(PinName TxPin,PinName RxPin);
+    
+    void SetBaud(int rate);
+    
+    ECEFPoint ReadPositionECEF(void);
+    
+    ECEFDistance DistanceBetweenTwoWP(ECEFPoint p1,ECEFPoint p2);
+    
+    geodPoint   ReadDecGeodLoc(void);
+    geodPoint   ReadRawGeodLoc(void);
+    
+    bool        FixIs3d(void);
+    bool        FixIs2d(void);
+    bool        GPSFixValid(void);
+    
+    GPSInfo info;   //current gps information
+       
+    private:
+    void RxIrqHandler(void);    
+    message RxMessageBuffer;
+    char insertIndex;
+};
+
+#endif
\ No newline at end of file