attmapper/lib/gps/gps.h

23 lines
439 B
C
Raw Normal View History

2021-05-15 17:47:57 +00:00
#ifndef __GPS_H__
#define __GPS_H__
#include <TinyGPS++.h>
class Gps
{
public:
void init();
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;
TinyGPSCustom satsInView;
};
#endif