You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							48 lines
						
					
					
						
							2.9 KiB
						
					
					
				
			
		
		
	
	
							48 lines
						
					
					
						
							2.9 KiB
						
					
					
				import os
 | 
						|
 | 
						|
from selfdrive.hardware import TICI, PC
 | 
						|
from selfdrive.manager.process import PythonProcess, NativeProcess, DaemonProcess
 | 
						|
 | 
						|
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"], offroad=True),
 | 
						|
  NativeProcess("proclogd", "selfdrive/proclogd", ["./proclogd"]),
 | 
						|
  NativeProcess("sensord", "selfdrive/sensord", ["./sensord"], enabled=not PC),
 | 
						|
  NativeProcess("ubloxd", "selfdrive/locationd", ["./ubloxd"], enabled=(not PC or WEBCAM)),
 | 
						|
  NativeProcess("ui", "selfdrive/ui", ["./ui"], offroad=True, watchdog_max_dt=(5 if TICI else None)),
 | 
						|
  NativeProcess("soundd", "selfdrive/ui/soundd", ["./soundd"], offroad=True),
 | 
						|
  NativeProcess("locationd", "selfdrive/locationd", ["./locationd"]),
 | 
						|
  NativeProcess("boardd", "selfdrive/boardd", ["./boardd"], enabled=False),
 | 
						|
  PythonProcess("calibrationd", "selfdrive.locationd.calibrationd"),
 | 
						|
  PythonProcess("controlsd", "selfdrive.controls.controlsd"),
 | 
						|
  PythonProcess("deleter", "selfdrive.loggerd.deleter", offroad=True),
 | 
						|
  PythonProcess("dmonitoringd", "selfdrive.monitoring.dmonitoringd", enabled=(not PC or WEBCAM), driverview=True),
 | 
						|
  PythonProcess("logmessaged", "selfdrive.logmessaged", offroad=True),
 | 
						|
  PythonProcess("pandad", "selfdrive.boardd.pandad", offroad=True),
 | 
						|
  PythonProcess("paramsd", "selfdrive.locationd.paramsd"),
 | 
						|
  PythonProcess("plannerd", "selfdrive.controls.plannerd"),
 | 
						|
  PythonProcess("radard", "selfdrive.controls.radard"),
 | 
						|
  PythonProcess("thermald", "selfdrive.thermald.thermald", offroad=True),
 | 
						|
  PythonProcess("timezoned", "selfdrive.timezoned", enabled=TICI, offroad=True),
 | 
						|
  PythonProcess("tombstoned", "selfdrive.tombstoned", enabled=not PC, offroad=True),
 | 
						|
  PythonProcess("updated", "selfdrive.updated", enabled=not PC, onroad=False, offroad=True),
 | 
						|
  PythonProcess("uploader", "selfdrive.loggerd.uploader", offroad=True),
 | 
						|
  PythonProcess("statsd", "selfdrive.statsd", offroad=True),
 | 
						|
 | 
						|
  NativeProcess("bridge", "cereal/messaging", ["./bridge"], onroad=False, notcar=True),
 | 
						|
  PythonProcess("webjoystick", "tools.joystick.web", onroad=False, notcar=True),
 | 
						|
 | 
						|
  # Experimental
 | 
						|
  PythonProcess("rawgpsd", "selfdrive.sensord.rawgps.rawgpsd", enabled=os.path.isfile("/persist/comma/use-quectel-rawgps")),
 | 
						|
]
 | 
						|
 | 
						|
managed_processes = {p.name: p for p in procs}
 | 
						|
 |