#ifndef _GPSREAD_H #define _GPSREAD_H #include // library for parsing NMEA data #include #include "timekeeper.h" #ifdef GPS_I2C // Needed for reading from I2C Bus #include #endif #ifndef GPS_BAUDRATE #define GPS_BAUDRATE 115200 #endif #define NMEA_FRAME_SIZE 82 // NEMA has a maxium of 82 bytes per record #define NMEA_COMPENSATION_FACTOR 480 // empiric for Ublox Neo 6M extern TinyGPSPlus gps; // Make TinyGPS++ instance globally availabe extern TaskHandle_t GpsTask; int gps_init(void); int gps_config(); bool gps_hasfix(); void gps_storelocation(gpsStatus_t *gps_store); void gps_loop(void *pvParameters); time_t get_gpstime(uint16_t *msec); #endif