|
|
@ -17,6 +17,11 @@ def logging(started, params, CP: car.CarParams) -> bool: |
|
|
|
run = (not CP.notCar) or not params.get_bool("DisableLogging") |
|
|
|
run = (not CP.notCar) or not params.get_bool("DisableLogging") |
|
|
|
return started and run |
|
|
|
return started and run |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def ublox(started, params, CP: car.CarParams) -> bool: |
|
|
|
|
|
|
|
use_ublox = os.path.exists('/dev/ttyHS0') and not os.path.exists('/persist/comma/use-quectel-gps') |
|
|
|
|
|
|
|
params.put_bool("UbloxAvailable", use_ublox) |
|
|
|
|
|
|
|
return started and use_ublox |
|
|
|
|
|
|
|
|
|
|
|
procs = [ |
|
|
|
procs = [ |
|
|
|
# due to qualcomm kernel bugs SIGKILLing camerad sometimes causes page table corruption |
|
|
|
# due to qualcomm kernel bugs SIGKILLing camerad sometimes causes page table corruption |
|
|
|
NativeProcess("camerad", "system/camerad", ["./camerad"], unkillable=True, callback=driverview), |
|
|
|
NativeProcess("camerad", "system/camerad", ["./camerad"], unkillable=True, callback=driverview), |
|
|
@ -35,7 +40,6 @@ procs = [ |
|
|
|
NativeProcess("mapsd", "selfdrive/navd", ["./map_renderer"], enabled=False), |
|
|
|
NativeProcess("mapsd", "selfdrive/navd", ["./map_renderer"], enabled=False), |
|
|
|
NativeProcess("navmodeld", "selfdrive/modeld", ["./navmodeld"], enabled=False), |
|
|
|
NativeProcess("navmodeld", "selfdrive/modeld", ["./navmodeld"], enabled=False), |
|
|
|
NativeProcess("sensord", "selfdrive/sensord", ["./sensord"], enabled=not PC), |
|
|
|
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 not PC else None)), |
|
|
|
NativeProcess("ui", "selfdrive/ui", ["./ui"], offroad=True, watchdog_max_dt=(5 if not PC else None)), |
|
|
|
NativeProcess("soundd", "selfdrive/ui/soundd", ["./soundd"], offroad=True), |
|
|
|
NativeProcess("soundd", "selfdrive/ui/soundd", ["./soundd"], offroad=True), |
|
|
|
NativeProcess("locationd", "selfdrive/locationd", ["./locationd"]), |
|
|
|
NativeProcess("locationd", "selfdrive/locationd", ["./locationd"]), |
|
|
@ -50,7 +54,8 @@ procs = [ |
|
|
|
PythonProcess("navd", "selfdrive.navd.navd"), |
|
|
|
PythonProcess("navd", "selfdrive.navd.navd"), |
|
|
|
PythonProcess("pandad", "selfdrive.boardd.pandad", offroad=True), |
|
|
|
PythonProcess("pandad", "selfdrive.boardd.pandad", offroad=True), |
|
|
|
PythonProcess("paramsd", "selfdrive.locationd.paramsd"), |
|
|
|
PythonProcess("paramsd", "selfdrive.locationd.paramsd"), |
|
|
|
PythonProcess("pigeond", "selfdrive.sensord.pigeond", enabled=TICI), |
|
|
|
NativeProcess("ubloxd", "selfdrive/locationd", ["./ubloxd"], enabled=TICI, onroad=False, callback=ublox), |
|
|
|
|
|
|
|
PythonProcess("pigeond", "selfdrive.sensord.pigeond", enabled=TICI, onroad=False, callback=ublox), |
|
|
|
PythonProcess("plannerd", "selfdrive.controls.plannerd"), |
|
|
|
PythonProcess("plannerd", "selfdrive.controls.plannerd"), |
|
|
|
PythonProcess("radard", "selfdrive.controls.radard"), |
|
|
|
PythonProcess("radard", "selfdrive.controls.radard"), |
|
|
|
PythonProcess("thermald", "selfdrive.thermald.thermald", offroad=True), |
|
|
|
PythonProcess("thermald", "selfdrive.thermald.thermald", offroad=True), |
|
|
|