PQ_Hybrid_Electrical_Equipment_Team / GPS_interrupt

Dependents:   Hybrid_interruptGPS Hybrid_main_FirstEdtion rocket_logger_sinkan2018_v1 HYBRYD2018_IZU_ROCKET ... more

Files at this revision

API Documentation at this revision

Comitter:
Gaku0606
Date:
Sun Feb 25 19:29:26 2018 +0000
Parent:
13:3ee69851e270
Child:
15:6b1ed321c1be
Commit message:
GNSS???

Changed in this revision

GPS_interrupt.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/GPS_interrupt.cpp	Sun Feb 25 03:26:34 2018 +0000
+++ b/GPS_interrupt.cpp	Sun Feb 25 19:29:26 2018 +0000
@@ -229,7 +229,7 @@
                     gps_readable = false;   
                 }
             }
-            else if(strncmp(gps_read_buffer, "$GPGGA", 6) == 0){
+            else if((strncmp(gps_read_buffer, "$GPGGA", 6) == 0) || (strncmp(gps_read_buffer, "$GNGGA", 6) == 0)){
                 memset(str_temp, '\0', 128);
                 strcpy(str_temp, gps_read_buffer);
                 if(processGPGGA(str_temp)){
@@ -360,7 +360,7 @@
             if (latSign)    latitude *= (-1);//南緯なら緯度を負に
             knot = atof(speed);
             degree = atof(angle);
-
+            //printf("\r\n%f\t%f\r\n",knot, degree);
             if(longitude > 100.0 && longitude < 150.0 && latitude > 30.0 && latitude < 50.0){
                 return true;
             }