zamojski / TowerCollector

The OpenCellID and MLS contributor's app.
Mozilla Public License 2.0
217 stars 27 forks source link

Warn that GPS parameters optimization may cause dropped measurements … #217

Open jidanni opened 7 months ago

jidanni commented 7 months ago

…on some devices when moving at high speeds.

For #180. (Which @zamojski might be missing notifications of).

Yes, tracing through the code, one finds

transportMode = (MyApplication.getPreferencesProvider().getGpsOptimizationsEnabled() ? MeansOfTransport.Universal : MeansOfTransport.Fixed);

and in CollectorService.java, things like

Timber.d("updateDynamicInterval(): Skipping GPS reconnection because of too small interval difference: %s", intervalDiff);
...
int newInterval = Math.min(currentIntervalValue.get() + 500, transportMode.getMaxTime());