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.
GPS.h
- Committer:
- chris215
- Date:
- 2014-08-06
- Revision:
- 0:0c1aa5906cef
- Child:
- 2:72ac4d7044a7
File content as of revision 0:0c1aa5906cef:
#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