Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

26 строки
477 B

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