nmea gps library - without any serial

Fork of GPS by Tyler Weaver

Revision:
4:6e2d98b5cb86
Parent:
3:465354a08ff8
--- a/GPS.h	Fri Dec 07 19:18:35 2012 +0000
+++ b/GPS.h	Wed Dec 12 17:22:45 2012 +0000
@@ -18,13 +18,13 @@
 
     /** Create the GPS interface, connected to the specified serial port
      */    
-    GPS(PinName tx, PinName rx);
+    GPS();
     
     /** Sample the incoming GPS data, returning whether there is a lock
      * 
      * @return 1 if there was a lock when the sample was taken (and therefore .longitude and .latitude are valid), else 0
      */
-    int sample();
+    int sample(char *);
     float get_nmea_longitude();
     float get_nmea_latitude();
     float get_dec_longitude();
@@ -47,13 +47,7 @@
 private:
     float nmea_to_dec(float, char);
     float trunc(float v);
-    void getline();
-    void format_for_log(void);
     
-    Serial _gps;
-    char msg[1024];
-    char bfr[1030];
-    bool is_logging;
     // calculated values
     float dec_longitude;
     float dec_latitude;