mirror of
https://github.com/justcallmekoko/ESP32Marauder.git
synced 2025-12-05 20:40:25 -08:00
36 lines
608 B
C++
36 lines
608 B
C++
#ifndef GpsInterface_h
|
|
#define GpsInterface_h
|
|
|
|
#include <MicroNMEA.h>
|
|
|
|
#include "configs.h"
|
|
|
|
class GpsInterface {
|
|
public:
|
|
void begin();
|
|
void main();
|
|
|
|
String getNumSatsString();
|
|
bool getFixStatus();
|
|
bool getGpsModuleStatus();
|
|
String getLat();
|
|
String getLon();
|
|
float getAlt();
|
|
String getDatetime();
|
|
|
|
private:
|
|
// GPS Info
|
|
String lat = "";
|
|
String lon = "";
|
|
float altf = 0.0;
|
|
String datetime = "";
|
|
|
|
bool gps_enabled = false;
|
|
bool good_fix = false;
|
|
uint8_t num_sats = 0;
|
|
|
|
String dt_string_from_gps();
|
|
void setGPSInfo();
|
|
};
|
|
|
|
#endif |