earlier galaxy boot

This commit is contained in:
firestar5683
2026-04-07 14:57:06 -05:00
parent 3fe5adc303
commit c4c5a9a92b
2 changed files with 13 additions and 2 deletions
+6 -2
View File
@@ -135,18 +135,22 @@ procs = [
]
# StarPilot variables
procs += [
PythonProcess("the_pond", "starpilot.system.the_pond.the_pond", always_run, nice=19),
PythonProcess("galaxy", "starpilot.system.galaxy.galaxy", always_run, nice=19),
]
device_type = HARDWARE.get_device_type()
if device_type in ("tici", "tizi"):
procs.append(NativeProcess("ui", "selfdrive/ui", ["./ui"], always_run, watchdog_max_dt=UI_WATCHDOG_MAX_DT))
else:
# C4 (mici) runs the Python raylib UI path.
procs.append(PythonProcess("ui", "selfdrive.ui.ui", always_run, watchdog_max_dt=UI_WATCHDOG_MAX_DT))
procs += [
PythonProcess("device_syncd", "starpilot.system.device_syncd", always_run),
PythonProcess("starpilot_process", "starpilot.starpilot_process", always_run),
PythonProcess("mapd", "starpilot.navigation.mapd_wrapper", always_run),
PythonProcess("the_pond", "starpilot.system.the_pond.the_pond", always_run, nice=19),
PythonProcess("galaxy", "starpilot.system.galaxy.galaxy", always_run, nice=19),
PythonProcess("speed_limit_filler", "starpilot.system.speed_limit_filler", run_speed_limit_filler),
PythonProcess("speed_limit_vision", "starpilot.system.speed_limit_vision", run_speed_limit_vision, nice=19),
]
+7
View File
@@ -89,6 +89,13 @@ class TestManager:
def test_duplicate_procs(self):
assert len(procs) == len(managed_processes), "Duplicate process names"
def test_remote_access_procs_start_before_ui(self):
names = [p.name for p in procs]
ui_idx = names.index("ui")
assert names.index("the_pond") < ui_idx
assert names.index("galaxy") < ui_idx
def test_blacklisted_procs(self):
# TODO: ensure there are blacklisted procs until we have a dedicated test
assert len(BLACKLIST_PROCS), "No blacklisted procs to test not_run"