Browse Source

Force the hand to obtain an accurate fix when possible. To be improved (intermediate timeout between fix / accurate fix and no fix at all)

tags/v1.2.0
Bertrand Lemasle 7 years ago
parent
commit
c0febe7fd6
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      GpsTracker/Gps.cpp

+ 1
- 1
GpsTracker/Gps.cpp View File

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


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


VERBOSE_FORMAT("acquireCurrentPosition", "%d", currentStatus); VERBOSE_FORMAT("acquireCurrentPosition", "%d", currentStatus);
mainunit::deepSleep(GPS_DEFAULT_INTERMEDIATE_TIMEOUT_MS / 1000); mainunit::deepSleep(GPS_DEFAULT_INTERMEDIATE_TIMEOUT_MS / 1000);


Loading…
Cancel
Save