2021-05-15 17:47:57 +00:00
|
|
|
#ifndef __GPS_H__
|
|
|
|
#define __GPS_H__
|
|
|
|
|
|
|
|
#include <TinyGPS++.h>
|
|
|
|
|
|
|
|
class Gps
|
|
|
|
{
|
|
|
|
public:
|
2021-06-20 16:35:13 +00:00
|
|
|
Gps();
|
2021-05-15 17:47:57 +00:00
|
|
|
bool checkGpsFix();
|
|
|
|
bool buildPacket(uint8_t txBuffer[]);
|
|
|
|
void gdisplay(uint16_t dispBuffer[]);
|
|
|
|
void encode();
|
|
|
|
|
|
|
|
private:
|
|
|
|
uint32_t LatitudeBinary, LongitudeBinary;
|
|
|
|
uint16_t altitudeGps;
|
|
|
|
uint8_t hdopGps;
|
|
|
|
TinyGPSPlus tGps;
|
2021-06-20 16:35:13 +00:00
|
|
|
TinyGPSCustom satsInView;
|
2021-05-15 17:47:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|