mirror of
https://github.com/meshtastic/python.git
synced 2026-01-19 21:28:07 -05:00
allow a bit more time for GPS locking in router mode
This commit is contained in:
@@ -85,6 +85,8 @@ def setRouter(interface, on):
|
||||
prefs.is_low_power = True
|
||||
prefs.gps_operation = mesh_pb2.GpsOpMobile
|
||||
|
||||
# FIXME - after tuning, move these params into the on-device defaults based on is_router and is_low_power
|
||||
|
||||
# prefs.position_broadcast_secs = FIXME possibly broadcast only once an hr
|
||||
prefs.wait_bluetooth_secs = 1 # Don't stay in bluetooth mode
|
||||
prefs.screen_on_secs = 60 # default to only keep screen & bluetooth on for one minute
|
||||
@@ -97,8 +99,8 @@ def setRouter(interface, on):
|
||||
# if a message wakes us from light sleep, stay awake for 10 secs in hopes of other processing
|
||||
prefs.min_wake_secs = 10
|
||||
|
||||
# allow up to two minutes for each new GPS lock attempt
|
||||
prefs.gps_attempt_time = 120 # FIXME 120
|
||||
# allow up to five minutes for each new GPS lock attempt
|
||||
prefs.gps_attempt_time = 300
|
||||
|
||||
# get a new GPS position once per day
|
||||
prefs.gps_update_interval = oneday
|
||||
|
||||
Reference in New Issue
Block a user