From a1e0ba73c91417453d830aeefd9234508c4875d5 Mon Sep 17 00:00:00 2001 From: dragonpilot Date: Wed, 21 Aug 2019 12:32:42 +1000 Subject: [PATCH] =?UTF-8?q?=E8=BB=8A=E5=AD=90=E5=95=9F=E5=8B=95=E5=BE=8C?= =?UTF-8?q?=E5=BC=B7=E8=BF=AB=E9=97=9C=E9=96=89=20mixplorer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- selfdrive/manager.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/selfdrive/manager.py b/selfdrive/manager.py index 7b2ae233c..b933e0f25 100755 --- a/selfdrive/manager.py +++ b/selfdrive/manager.py @@ -381,13 +381,14 @@ def manager_thread(): tomtom_started = False autonavi_started = False + mixplorer_started = False dp_last_check = 0. dragon_boot_tomtom = False dragon_boot_autonavi = False while 1: ts = sec_since_boot() - if ts - dp_last_check > 3.: + if ts - dp_last_check > 5.: dragon_boot_tomtom = False if params.get("DragonBootTomTom") == "0" else True try: tomtom_started = False if subprocess.check_output(['pidof', 'com.tomtom.speedcams.android.map']) == "" else True @@ -400,6 +401,11 @@ def manager_thread(): except subprocess.CalledProcessError as e: autonavi_started = False + try: + mixplorer_started = False if subprocess.check_output(['pidof', 'com.mixplorer']) == "" else True + except subprocess.CalledProcessError as e: + mixplorer_started = False + msg = messaging.recv_sock(thermal_sock, wait=True) # uploader is gated based on the phone temperature @@ -430,6 +436,8 @@ def manager_thread(): system("pkill com.tomtom.speedcams.android.map") if dragon_boot_autonavi and autonavi_started: system("pkill com.autonavi.amapauto") + if mixplorer_started: + system("pkill com.mixplorer") else: logger_dead = False