Updated version with new commands and sleep mode

Fork of GPS by Sam Clarke

Files at this revision

API Documentation at this revision

Comitter:
Spilly
Date:
Wed Apr 29 18:07:39 2015 +0000
Parent:
8:2476bea153a1
Child:
10:a73736c18332
Commit message:
Updated comments

Changed in this revision

GPS.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/GPS.cpp	Mon Apr 27 16:49:11 2015 +0000
+++ b/GPS.cpp	Wed Apr 29 18:07:39 2015 +0000
@@ -174,58 +174,6 @@
         return 1;
     }
     return 0;
-    /*
-    getData();
-    if(getGPGGA())
-    {
-        getData();
-        if(getGPGSA())
-        {
-            getData();
-            getGPRMC();
-            return 1;
-        }
-        else
-        {
-            getData();
-            getGPGSA();
-            return 1;
-        }
-    }
-    else if(getGPGSA())
-    {
-        getData();
-        if(getGPGGA())
-        {
-            getData();
-            getGPRMC();
-            return 1;
-        }
-        else
-        {
-            getData();
-            getGPGGA();
-            return 1;
-        }
-    }
-    else
-    {
-        getData();
-        if(getGPGGA())
-        {
-            getData();
-            getGPGSA();
-            return 1;
-        }
-        else if(getGPGSA())
-        {
-            getData();
-            getGPGGA();
-            return 1;
-        }
-    }
-    return 0;
-    */
 }
 
 
@@ -248,24 +196,6 @@
     //printf("%c\n", tempChar);
     if(tempChar == '$')
     {
-        /*
-        for(int i=0; i<256; i++) 
-        {
-            NEMA[i] = _UltimateGps.getc();
-            if(NEMA[i] == '\r') 
-            {
-                NEMA[i] = 0;
-                parseData();
-                if(sentenceCount == 3)
-                {
-                    sentenceCount = 0;
-                    return 1;
-                }
-                return 0;
-            }
-        }
-        */
-        
         for(int i=0; i<256; i++) 
         {
             NEMA[i] = _UltimateGps.getc();
@@ -342,45 +272,6 @@
         
     }
     return 0;
-    /*
-    if(tempChar == '$')
-    {
-        //printf("start\n");
-        NEMACount = 0;
-        recordFlag = 1;
-    }
-    else if(recordFlag && (tempChar == '\r'))
-    {
-        NEMA[NEMACount] = 0;
-        parseData();
-        recordFlag = 0;
-        //return 1;
-        if(sentenceCount == 3)
-        {
-            sentenceCount = 0;
-            return 1;
-        }
-    }
-    else if(recordFlag)
-    {
-        //printf("count = %d\n", NEMACount);
-        NEMA[NEMACount] = tempChar;
-        NEMACount = NEMACount + 1;
-    }
-    
-    return 0;
-    */
-    /*
-    while(_UltimateGps.getc() != '$');
-    for(int i=0; i<256; i++) {
-        NEMA[i] = _UltimateGps.getc();
-        if(NEMA[i] == '\r') {
-            NEMA[i] = 0;
-            return;
-        }
-    }
-    error("overflowed message limit");
-    */
 }
 
 void GPS::Init()