From 79d38db009e60daaf9e467c5c2c07f744675cba6 Mon Sep 17 00:00:00 2001 From: dragonpilot Date: Wed, 4 Sep 2019 15:37:40 +1000 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E9=96=8B=20GPS=20=E9=AB=98=E7=B2=BE?= =?UTF-8?q?=E7=A2=BA=E5=BA=A6=E5=AE=9A=E4=BD=8D=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- selfdrive/dragonpilot/appd/appd.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/selfdrive/dragonpilot/appd/appd.py b/selfdrive/dragonpilot/appd/appd.py index 84fc901eb..ec4af710d 100644 --- a/selfdrive/dragonpilot/appd/appd.py +++ b/selfdrive/dragonpilot/appd/appd.py @@ -39,6 +39,7 @@ def main(gctx=None): frame = 0 start_delay = None stop_delay = None + high_accuracy_mode_enabled = False params.put('DragonRunTomTom', '0') params.put('DragonRunAutonavi', '0') @@ -50,6 +51,9 @@ def main(gctx=None): thermal_sock = messaging.sub_sock(service_list['thermal'].port) while dragon_enable_tomtom or dragon_enable_autonavi or dragon_enable_mixplorer: + if (dragon_enable_tomtom or dragon_enable_autonavi) and not high_accuracy_mode_enabled: + system("settings put secure location_providers_allowed +gps,network,wifi") + high_accuracy_mode_enabled = True # allow user to manually start/stop app if dragon_enable_tomtom: