GPS精度実験
Fork of MBed_Adafruit-GPS-Library by
Diff: MBed_Adafruit_GPS.h
- Revision:
- 7:3f389529228e
- Parent:
- 5:ce26d53dc358
--- a/MBed_Adafruit_GPS.h Wed Sep 14 11:01:52 2016 +0000 +++ b/MBed_Adafruit_GPS.h Thu Oct 06 15:29:58 2016 +0000 @@ -20,6 +20,7 @@ #include <stdint.h> #include <math.h> #include <ctype.h> +#include <string> #ifndef _MBED_ADAFRUIT_GPS_H @@ -30,7 +31,7 @@ #define PMTK_SET_NMEA_UPDATE_1HZ "$PMTK220,1000*1F" #define PMTK_SET_NMEA_UPDATE_5HZ "$PMTK220,200*2C" #define PMTK_SET_NMEA_UPDATE_10HZ "$PMTK220,100*2F" - +#define PMTK_SET_NMEA_UPDATE_3SEC "$PMTK220,3000*1D" #define PMTK_SET_BAUD_57600 "$PMTK251,57600*2C" #define PMTK_SET_BAUD_9600 "$PMTK251,9600*17" @@ -86,9 +87,13 @@ bool parseNMEA(char *response); uint8_t parseHex(char c); - char *GPGGAdata; - char *GPRMCdata; - char *GPGSAdata; + string GPGGAdata; + string GPRMCdata; + string GPGSAdata; + string GPGSVdata; + string GPGSVdataA, GPGSVdataB, GPGSVdataC, GPGSVdataD; + int print_ok; + int count_[3]; char read(void); bool parse(char * nmea);