Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Hybrid_interruptGPS Hybrid_main_FirstEdtion rocket_logger_sinkan2018_v1 HYBRYD2018_IZU_ROCKET ... more
Revision 14:23611bb30bc8, committed 2018-02-25
- 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;
}