2018-07-17 15:15:58 +02:00
|
|
|
#ifndef _GPS_H
|
|
|
|
#define _GPS_H
|
2018-07-15 14:28:05 +02:00
|
|
|
|
2018-07-17 13:51:41 +02:00
|
|
|
#include <TinyGPS++.h> // library for parsing NMEA data
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
uint32_t latitude;
|
|
|
|
uint32_t longitude;
|
|
|
|
uint8_t satellites;
|
|
|
|
uint16_t hdop;
|
|
|
|
uint16_t altitude;
|
|
|
|
} gpsStatus_t;
|
2018-07-15 14:28:05 +02:00
|
|
|
|
2018-07-17 11:53:43 +02:00
|
|
|
extern TinyGPSPlus gps; // Make TinyGPS++ instance globally availabe
|
2018-07-17 13:51:41 +02:00
|
|
|
extern gpsStatus_t gps_status; // Make struct for storing gps data globally available
|
2018-07-17 11:53:43 +02:00
|
|
|
|
2018-07-15 14:28:05 +02:00
|
|
|
void gps_read(void);
|
|
|
|
void gps_loop(void *pvParameters);
|
|
|
|
|
|
|
|
#endif
|