Quellcode durchsuchen

Adjusted speed timings

tags/v1.2.0
Bertrand Lemasle vor 7 Jahren
Ursprung
Commit
6b19ce95d3
2 geänderte Dateien mit 4 neuen und 4 gelöschten Zeilen
  1. +2
    -2
      GpsTracker/Config.h
  2. +2
    -2
      GpsTracker/Gps.cpp

+ 2
- 2
GpsTracker/Config.h Datei anzeigen

@@ -62,8 +62,8 @@ namespace config {
{ 100, 210 },
{ 180, 180 },
};*/
{ 5, 600 },
{ 3, 1800 },
{ 5, 900 },
{ 10, 600 },
{ 20, 600 },
{ 30, 540 },


+ 2
- 2
GpsTracker/Gps.cpp Datei anzeigen

@@ -30,9 +30,9 @@ namespace gps {

do {
currentStatus = hardware::sim808::device.getGpsStatus();
if (currentStatus > SIM808_GPS_STATUS::FIX) break //if we have an accurate fix, break right now
if (currentStatus > SIM808_GPS_STATUS::FIX) break; //if we have an accurate fix, break right now

VERBOSE_FORMAT("acquireCurrentPosition", "%d", currentStatus);
NOTICE_FORMAT("acquireCurrentPosition", "%d", currentStatus);
mainunit::deepSleep(GPS_DEFAULT_INTERMEDIATE_TIMEOUT_MS / 1000);
timeout -= GPS_DEFAULT_INTERMEDIATE_TIMEOUT_MS;
} while (timeout > 1);


Laden…
Abbrechen
Speichern