send gps info more often while testing

This commit is contained in:
geeksville 2020-02-19 15:28:15 -08:00
parent b1753bf5a8
commit b9848c458c
3 changed files with 4 additions and 2 deletions

View file

@ -106,7 +106,8 @@ data class NodeInfo(
get() {
val now = System.currentTimeMillis() / 1000
// FIXME - use correct timeout from the device settings
val timeout = 5 * 60
val timeout =
15 * 60 // Don't set this timeout too tight, or otherwise we will stop sending GPS helper positions to our device
return (now - lastSeen <= timeout) || lastSeen == 0
}

View file

@ -141,7 +141,7 @@ class MeshService : Service(), Logging {
if (fusedLocationClient == null) {
val request = LocationRequest.create().apply {
interval =
20 * 1000 // FIXME, do more like once every 5 mins while we are connected to our radio _and_ someone else is in the mesh
10 * 1000 // FIXME, do more like once every 5 mins while we are connected to our radio _and_ someone else is in the mesh
priority = LocationRequest.PRIORITY_HIGH_ACCURACY
}