2021-03-07 22:02:08 -08:00
|
|
|
import os
|
|
|
|
|
|
2021-03-05 11:03:23 +01:00
|
|
|
from selfdrive.manager.process import PythonProcess, NativeProcess, DaemonProcess
|
|
|
|
|
from selfdrive.hardware import EON, TICI, PC
|
|
|
|
|
|
2021-06-05 12:20:02 +08:00
|
|
|
WEBCAM = os.getenv("USE_WEBCAM") is not None
|
2021-03-07 22:02:08 -08:00
|
|
|
|
2021-03-05 11:03:23 +01:00
|
|
|
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"]),
|
2021-03-08 12:18:58 +01:00
|
|
|
NativeProcess("dmonitoringmodeld", "selfdrive/modeld", ["./dmonitoringmodeld"], enabled=(not PC or WEBCAM), driverview=True),
|
2021-03-05 11:03:23 +01:00
|
|
|
NativeProcess("logcatd", "selfdrive/logcatd", ["./logcatd"]),
|
|
|
|
|
NativeProcess("loggerd", "selfdrive/loggerd", ["./loggerd"]),
|
|
|
|
|
NativeProcess("modeld", "selfdrive/modeld", ["./modeld"]),
|
2021-11-04 14:32:32 +01:00
|
|
|
NativeProcess("navd", "selfdrive/ui/navd", ["./navd"], enabled=(PC or TICI), persistent=True),
|
2021-03-05 11:03:23 +01:00
|
|
|
NativeProcess("proclogd", "selfdrive/proclogd", ["./proclogd"]),
|
2021-03-08 12:18:58 +01:00
|
|
|
NativeProcess("sensord", "selfdrive/sensord", ["./sensord"], enabled=not PC, persistent=EON, sigkill=EON),
|
|
|
|
|
NativeProcess("ubloxd", "selfdrive/locationd", ["./ubloxd"], enabled=(not PC or WEBCAM)),
|
2021-07-17 14:52:05 -07:00
|
|
|
NativeProcess("ui", "selfdrive/ui", ["./ui"], persistent=True, watchdog_max_dt=(5 if TICI else None)),
|
2021-12-15 14:29:32 -08:00
|
|
|
NativeProcess("soundd", "selfdrive/ui/soundd", ["./soundd"]),
|
2021-04-20 11:56:43 +02:00
|
|
|
NativeProcess("locationd", "selfdrive/locationd", ["./locationd"]),
|
2021-08-06 15:48:16 -07:00
|
|
|
NativeProcess("boardd", "selfdrive/boardd", ["./boardd"], enabled=False),
|
2021-03-05 11:03:23 +01:00
|
|
|
PythonProcess("calibrationd", "selfdrive.locationd.calibrationd"),
|
|
|
|
|
PythonProcess("controlsd", "selfdrive.controls.controlsd"),
|
|
|
|
|
PythonProcess("deleter", "selfdrive.loggerd.deleter", persistent=True),
|
2021-03-08 12:18:58 +01:00
|
|
|
PythonProcess("dmonitoringd", "selfdrive.monitoring.dmonitoringd", enabled=(not PC or WEBCAM), driverview=True),
|
2021-03-05 11:03:23 +01:00
|
|
|
PythonProcess("logmessaged", "selfdrive.logmessaged", persistent=True),
|
|
|
|
|
PythonProcess("pandad", "selfdrive.pandad", persistent=True),
|
|
|
|
|
PythonProcess("paramsd", "selfdrive.locationd.paramsd"),
|
|
|
|
|
PythonProcess("plannerd", "selfdrive.controls.plannerd"),
|
|
|
|
|
PythonProcess("radard", "selfdrive.controls.radard"),
|
|
|
|
|
PythonProcess("thermald", "selfdrive.thermald.thermald", persistent=True),
|
2021-03-08 12:18:58 +01:00
|
|
|
PythonProcess("timezoned", "selfdrive.timezoned", enabled=TICI, persistent=True),
|
|
|
|
|
PythonProcess("tombstoned", "selfdrive.tombstoned", enabled=not PC, persistent=True),
|
|
|
|
|
PythonProcess("updated", "selfdrive.updated", enabled=not PC, persistent=True),
|
2021-03-05 11:03:23 +01:00
|
|
|
PythonProcess("uploader", "selfdrive.loggerd.uploader", persistent=True),
|
2021-08-19 16:00:05 -07:00
|
|
|
|
|
|
|
|
# EON only
|
|
|
|
|
PythonProcess("rtshield", "selfdrive.rtshield", enabled=EON),
|
|
|
|
|
PythonProcess("androidd", "selfdrive.hardware.eon.androidd", enabled=EON, persistent=True),
|
2021-03-05 11:03:23 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
managed_processes = {p.name: p for p in procs}
|