mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-09-26 01:13:49 +08:00
c0098cec09
* move manager in folder
* inital refactor
* call start
* small cleanup
* add comments
* use self.signal()
* order shouldnt matter
* newlines
* add helpers
* newlines
* add process config
* split out build part of manager
* this should fix most tests
* no sensord on pc
* dont start athena
* remove comment
* fix old athena test
* fix inject model
* fix test car models
* should be not none
* fix helpers exitcode
* ignore manage_athenad
* Use time.monotonic()
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* combine init, remove spinner
* move manager test
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 5a3b511306
49 lines
2.2 KiB
Python
49 lines
2.2 KiB
Python
from selfdrive.manager.process import PythonProcess, NativeProcess, DaemonProcess
|
|
from selfdrive.hardware import EON, TICI, PC
|
|
|
|
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"]),
|
|
NativeProcess("proclogd", "selfdrive/proclogd", ["./proclogd"]),
|
|
NativeProcess("ubloxd", "selfdrive/locationd", ["./ubloxd"]),
|
|
NativeProcess("ui", "selfdrive/ui", ["./ui"], persistent=True),
|
|
PythonProcess("calibrationd", "selfdrive.locationd.calibrationd"),
|
|
PythonProcess("controlsd", "selfdrive.controls.controlsd"),
|
|
PythonProcess("deleter", "selfdrive.loggerd.deleter", persistent=True),
|
|
PythonProcess("dmonitoringd", "selfdrive.monitoring.dmonitoringd", driverview=True),
|
|
PythonProcess("locationd", "selfdrive.locationd.locationd"),
|
|
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),
|
|
PythonProcess("uploader", "selfdrive.loggerd.uploader", persistent=True),
|
|
]
|
|
|
|
if not PC:
|
|
procs += [
|
|
NativeProcess("sensord", "selfdrive/sensord", ["./sensord"], persistent=EON, sigkill=EON),
|
|
PythonProcess("tombstoned", "selfdrive.tombstoned", persistent=True),
|
|
PythonProcess("updated", "selfdrive.updated", persistent=True),
|
|
]
|
|
|
|
if TICI:
|
|
procs += [
|
|
PythonProcess("timezoned", "selfdrive.timezoned", persistent=True),
|
|
]
|
|
|
|
if EON:
|
|
procs += [
|
|
PythonProcess("rtshield", "selfdrive.rtshield"),
|
|
]
|
|
|
|
|
|
managed_processes = {p.name: p for p in procs}
|