車子啟動後強迫關閉 mixplorer

This commit is contained in:
dragonpilot
2019-08-21 12:32:42 +10:00
parent 8f4281a10f
commit a1e0ba73c9
+9 -1
View File
@@ -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