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.
Diff: GPS.h
- Revision:
- 2:72ac4d7044a7
- Parent:
- 0:0c1aa5906cef
- Child:
- 4:d911d7c4e09d
diff -r fade122a76a8 -r 72ac4d7044a7 GPS.h --- a/GPS.h Mon Apr 06 17:41:43 2015 +0000 +++ b/GPS.h Sun Feb 14 05:55:38 2016 +0000 @@ -2,7 +2,7 @@ #define _MBED_GPS_H_ #include "mbedGPSDefs.h" #include "mbed.h" - +#define MESSAGE_QUEUE_SIZE 20 @@ -25,10 +25,19 @@ bool GPSFixValid(void); GPSInfo info; //current gps information - + + void PumpGpsMessages(void); + private: void RxIrqHandler(void); + message GPSRMCMessage; + message GPSVTGMessage; + message GPSGSAMessage; + message GPSGGAMessage; message RxMessageBuffer; + uint32_t RxQueueSize; + uint32_t RxQueueWriteIndex; + uint32_t RxQueueReadIndex; char insertIndex; };