2018-10-21 19:00:20 +02:00
|
|
|
#ifndef _GPSREAD_H
|
|
|
|
#define _GPSREAD_H
|
2018-07-15 14:28:05 +02:00
|
|
|
|
2022-02-22 13:11:46 +01:00
|
|
|
#if (HAS_GPS)
|
|
|
|
|
2018-09-20 17:33:52 +02:00
|
|
|
#include <TinyGPS++.h> // library for parsing NMEA data
|
2019-02-25 20:22:03 +01:00
|
|
|
#include "timekeeper.h"
|
2018-07-17 13:51:41 +02:00
|
|
|
|
2022-02-06 18:29:30 +01:00
|
|
|
#ifndef GPS_BAUDRATE
|
2022-02-12 16:26:41 +01:00
|
|
|
#define GPS_BAUDRATE 115200UL
|
2022-02-06 18:29:30 +01:00
|
|
|
#endif
|
|
|
|
|
2018-09-20 17:33:52 +02:00
|
|
|
extern TinyGPSPlus gps; // Make TinyGPS++ instance globally availabe
|
2018-10-03 00:25:05 +02:00
|
|
|
extern TaskHandle_t GpsTask;
|
2018-07-17 11:53:43 +02:00
|
|
|
|
2018-11-25 16:05:30 +01:00
|
|
|
int gps_init(void);
|
2019-08-04 15:17:50 +02:00
|
|
|
int gps_config();
|
2020-01-03 09:59:10 +01:00
|
|
|
bool gps_hasfix();
|
2019-07-28 23:51:24 +02:00
|
|
|
void gps_storelocation(gpsStatus_t *gps_store);
|
2018-07-15 14:28:05 +02:00
|
|
|
void gps_loop(void *pvParameters);
|
2020-03-11 23:47:33 +01:00
|
|
|
time_t get_gpstime(uint16_t *msec);
|
2018-07-15 14:28:05 +02:00
|
|
|
|
2022-02-22 13:11:46 +01:00
|
|
|
#endif
|
|
|
|
|
2018-07-15 14:28:05 +02:00
|
|
|
#endif
|