GpsInterface.h 694 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #ifndef GpsInterface_h
  2. #define GpsInterface_h
  3. #include <MicroNMEA.h>
  4. #include "configs.h"
  5. class GpsInterface {
  6. public:
  7. void begin();
  8. void main();
  9. String getNumSatsString();
  10. bool getFixStatus();
  11. String getFixStatusAsString();
  12. bool getGpsModuleStatus();
  13. String getLat();
  14. String getLon();
  15. float getAlt();
  16. float getAccuracy();
  17. String getDatetime();
  18. private:
  19. // GPS Info
  20. String lat = "";
  21. String lon = "";
  22. float altf = 0.0;
  23. float accuracy = 0.0;
  24. String datetime = "";
  25. bool gps_enabled = false;
  26. bool good_fix = false;
  27. uint8_t num_sats = 0;
  28. String dt_string_from_gps();
  29. void setGPSInfo();
  30. };
  31. #endif