Files
ESP32Marauder/esp32_marauder/GpsInterface.h
Just Call Me Koko 26a46d6c4d Add GPS data function
2023-09-01 15:20:10 -04:00

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