Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

33 linhas
497 B

  1. #include "Gps.h"
  2. #include "Debug.h"
  3. #define LOGGER_NAME "Gps"
  4. namespace gps {
  5. char lastPosition[GPS_POSITION_SIZE];
  6. SIM808_GPS_STATUS lastStatus;
  7. void powerOn() {
  8. }
  9. void powerOff() {
  10. }
  11. SIM808_GPS_STATUS acquireCurrentPosition() {
  12. SIM808_GPS_STATUS currentStatus = SIM808_GPS_STATUS::OFF;
  13. //TODO : do while (!timeout && < accurate_fix)
  14. if (currentStatus > SIM808_GPS_STATUS::NO_FIX) {
  15. lastStatus = currentStatus;
  16. }
  17. return currentStatus;
  18. }
  19. time_t getTime() {
  20. }
  21. }