GPS data handling refactored

This commit is contained in:
Verkehrsrot committed 2019-04-15 12:57:55 +02:00
1 parent 359b31e9e9
commit 195661a520
9 files changed
+63 -54

No files matched your search

+2 -1
View File
@@ -83,7 +83,8 @@ typedef struct {
uint8_t satellites;
uint16_t hdop;
int16_t altitude;
time_t utctime;
uint32_t time_age;
tmElements_t timedate;
} gpsStatus_t;
typedef struct {
+3 -2
View File
@@ -18,9 +18,10 @@ extern gpsStatus_t
extern TaskHandle_t GpsTask;
int gps_init(void);
void gps_read(void);
void IRAM_ATTR gps_storetime(gpsStatus_t &gps_store);
void gps_storelocation(gpsStatus_t &gps_store);
void gps_loop(void *pvParameters);
time_t get_gpstime(void);
time_t get_gpstime(gpsStatus_t value);
int gps_config();
#endif
-2
View File
@@ -28,8 +28,6 @@ uint8_t timepulse_init(void);
time_t timeIsValid(time_t const t);
time_t timeProvider(void);
time_t compiledUTC(void);
time_t tmConvert(uint16_t YYYY, uint8_t MM, uint8_t DD, uint8_t hh, uint8_t mm,
uint8_t ss);
TickType_t tx_Ticks(uint32_t framesize, unsigned long baud, uint32_t config,
int8_t rxPin, int8_t txPins);
time_t TimeSyncAns(uint8_t seqNo, uint64_t unixTime);