GPS Library for Nucleo
Dependencies: Adafruit_GPS
Fork of MBed_Adafruit-GPS-Library by
Diff: GPS_Wrapper.h
- Revision:
- 5:1249c2cfdede
- Parent:
- 3:f2477af055c3
--- a/GPS_Wrapper.h Sat Dec 05 07:34:56 2015 +0000 +++ b/GPS_Wrapper.h Mon Dec 07 00:05:43 2015 +0000 @@ -1,13 +1,20 @@ #include "main.h" #include "MBed_Adafruit_GPS.h" -#define REFRESH_TIME 2000 //Refresh time in ms - -// GPS global variables +#define REFRESH_TIME 2000 // Refresh time in ms +#define N_GPS_QUERIES 300000 // Number of queries to send GPS -- changing may lose readings +#define SEC_WAIT_FOR_FIX 60 // Number of seconds to wait for the GPS to get a fix +#define GPS_BAUD 9600 // Sets the GPS baud rate #ifndef _GPS_WRAPPER_CLASS #define _GPS_WRAPPER_CLASS +/* Class: GPS_Sensor + * ---------------- + * Defines a "wrapper" class for the Adafruit GPS + * library. Abstracts their functions for use with + * this project. + */ class GPS_Sensor { public: GPS_Sensor() : gps_Serial(GPS_TX, GPS_RX), myGPS(&gps_Serial), gpsEN(GPS_EN){}