mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-18 21:14:01 +08:00
don't run dmonitoringmodeld in sim
This commit is contained in:
@@ -1,12 +1,15 @@
|
||||
import os
|
||||
|
||||
from selfdrive.manager.process import PythonProcess, NativeProcess, DaemonProcess
|
||||
from selfdrive.hardware import EON, TICI, PC
|
||||
|
||||
WEBCAM = os.getenv("WEBCAM") is not None
|
||||
|
||||
procs = [
|
||||
DaemonProcess("manage_athenad", "selfdrive.athena.manage_athenad", "AthenadPid"),
|
||||
# due to qualcomm kernel bugs SIGKILLing camerad sometimes causes page table corruption
|
||||
NativeProcess("camerad", "selfdrive/camerad", ["./camerad"], unkillable=True, driverview=True),
|
||||
NativeProcess("clocksd", "selfdrive/clocksd", ["./clocksd"]),
|
||||
NativeProcess("dmonitoringmodeld", "selfdrive/modeld", ["./dmonitoringmodeld"], driverview=True),
|
||||
NativeProcess("logcatd", "selfdrive/logcatd", ["./logcatd"]),
|
||||
NativeProcess("loggerd", "selfdrive/loggerd", ["./loggerd"]),
|
||||
NativeProcess("modeld", "selfdrive/modeld", ["./modeld"]),
|
||||
@@ -34,6 +37,11 @@ if not PC:
|
||||
PythonProcess("updated", "selfdrive.updated", persistent=True),
|
||||
]
|
||||
|
||||
if not PC or WEBCAM:
|
||||
procs += [
|
||||
NativeProcess("dmonitoringmodeld", "selfdrive/modeld", ["./dmonitoringmodeld"], driverview=True),
|
||||
]
|
||||
|
||||
if TICI:
|
||||
procs += [
|
||||
PythonProcess("timezoned", "selfdrive.timezoned", persistent=True),
|
||||
|
||||
Reference in New Issue
Block a user