Beispiel #1
0
import os

from selfdrive.manager.process import PythonProcess, NativeProcess, DaemonProcess
from selfdrive.hardware import EON, TICI, PC

WEBCAM = os.getenv("USE_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"],
                  enabled=(not PC or WEBCAM),
                  driverview=True),
    NativeProcess("logcatd", "selfdrive/logcatd", ["./logcatd"]),
    NativeProcess("loggerd", "selfdrive/loggerd", ["./loggerd"]),
    NativeProcess("modeld", "selfdrive/modeld", ["./modeld"]),
    NativeProcess("navd",
                  "selfdrive/ui/navd", ["./navd"],
                  enabled=(PC or TICI),
                  persistent=True),
    NativeProcess("proclogd", "selfdrive/proclogd", ["./proclogd"]),
    NativeProcess("sensord",
                  "selfdrive/sensord", ["./sensord"],
                  enabled=not PC,
Beispiel #2
0
import os

from selfdrive.manager.process import PythonProcess, NativeProcess, DaemonProcess
from selfdrive.hardware import EON, TICI, PC, JETSON
from common.params import Params

JETSON = JETSON or Params().get_bool('dp_jetson')
WEBCAM = os.getenv("USE_WEBCAM") is not None
MIPI = os.getenv("USE_MIPI") is not None

procs = [
    DaemonProcess("manage_athenad",
                  "selfdrive.athena.manage_athenad",
                  "AthenadPid",
                  enabled=not JETSON),
    # 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"],
                  enabled=not JETSON and (not PC or WEBCAM),
                  driverview=True),
    NativeProcess("logcatd",
                  "selfdrive/logcatd", ["./logcatd"],
                  enabled=not JETSON),
    NativeProcess("loggerd",
                  "selfdrive/loggerd", ["./loggerd"],
                  enabled=not JETSON),