GPS/NMEA Parser that has been ported from Arduino to mbed tested with BufferedSerial original from here : http://arduiniana.org/libraries/tinygpsplus/

Dependents:   WNC_Pubnub_obd2b_ign_em506SoftSerial_RESETFE2 mbed_xbeetest

A Full-featured GPS/NMEA Parser that has been tested with BufferedSerial

TinyGPS++ is a library for parsing NMEA data streams provided by GPS modules. Like its predecessor, TinyGPS, this library provides compact and easy-to-use methods for extracting position, date, time, altitude, speed, and course from consumer GPS devices. However, TinyGPS++’s programmer interface is considerably simpler to use than TinyGPS,

The library can extract arbitrary data from any of the myriad NMEA sentences out there, even proprietary ones

from here : http://arduiniana.org/libraries/tinygpsplus/

Committer:
Sir_Binky
Date:
Fri Jan 22 13:30:33 2016 +0000
Revision:
1:9163a9f5fc36
Parent:
0:3407bd06cfae
added a "Binary" version of the lat and lng; Binary representation of the double;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Sir_Binky 0:3407bd06cfae 1 #ifndef __CONSTANTS_H
Sir_Binky 0:3407bd06cfae 2 #define __CONSTANTS_H
Sir_Binky 0:3407bd06cfae 3
Sir_Binky 0:3407bd06cfae 4 //#define ULONG_MAX 4294967295UL
Sir_Binky 0:3407bd06cfae 5
Sir_Binky 0:3407bd06cfae 6 #define PI 3.1415926535897932384626433832795
Sir_Binky 0:3407bd06cfae 7 #define HALF_PI 1.5707963267948966192313216916398
Sir_Binky 0:3407bd06cfae 8 #define TWO_PI 6.283185307179586476925286766559
Sir_Binky 0:3407bd06cfae 9 #define DEG_TO_RAD 0.017453292519943295769236907684886
Sir_Binky 0:3407bd06cfae 10 #define RAD_TO_DEG 57.295779513082320876798154814105
Sir_Binky 0:3407bd06cfae 11 #define EULER 2.718281828459045235360287471352
Sir_Binky 0:3407bd06cfae 12
Sir_Binky 0:3407bd06cfae 13 /*
Sir_Binky 0:3407bd06cfae 14 #ifndef min
Sir_Binky 0:3407bd06cfae 15 #define min(a,b) ((a)<(b)?(a):(b))
Sir_Binky 0:3407bd06cfae 16 #endif // min
Sir_Binky 0:3407bd06cfae 17
Sir_Binky 0:3407bd06cfae 18 #ifndef max
Sir_Binky 0:3407bd06cfae 19 #define max(a,b) ((a)>(b)?(a):(b))
Sir_Binky 0:3407bd06cfae 20 #endif // max
Sir_Binky 0:3407bd06cfae 21
Sir_Binky 0:3407bd06cfae 22 #define abs(x) ((x)>0?(x):-(x))
Sir_Binky 0:3407bd06cfae 23 */
Sir_Binky 0:3407bd06cfae 24
Sir_Binky 0:3407bd06cfae 25 #define constrain(amt,low,high) ((amt)<(low)?(low):((amt)>(high)?(high):(amt)))
Sir_Binky 0:3407bd06cfae 26 #define round(x) ((x)>=0?(long)((x)+0.5):(long)((x)-0.5))
Sir_Binky 0:3407bd06cfae 27 #define radians(deg) ((deg)*DEG_TO_RAD)
Sir_Binky 0:3407bd06cfae 28 #define degrees(rad) ((rad)*RAD_TO_DEG)
Sir_Binky 0:3407bd06cfae 29 #define sq(x) ((x)*(x))
Sir_Binky 0:3407bd06cfae 30
Sir_Binky 0:3407bd06cfae 31
Sir_Binky 0:3407bd06cfae 32 #endif