Browse Source

Adjusted speed timings

tags/v1.2.0
Bertrand Lemasle 7 years ago
parent
commit
6b19ce95d3
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      GpsTracker/Config.h
  2. +2
    -2
      GpsTracker/Gps.cpp

+ 2
- 2
GpsTracker/Config.h View File

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


+ 2
- 2
GpsTracker/Gps.cpp View File

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


do { do {
currentStatus = hardware::sim808::device.getGpsStatus(); 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); mainunit::deepSleep(GPS_DEFAULT_INTERMEDIATE_TIMEOUT_MS / 1000);
timeout -= GPS_DEFAULT_INTERMEDIATE_TIMEOUT_MS; timeout -= GPS_DEFAULT_INTERMEDIATE_TIMEOUT_MS;
} while (timeout > 1); } while (timeout > 1);


Loading…
Cancel
Save