mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-09-30 03:13:48 +08:00
earlier galaxy boot
This commit is contained in:
@@ -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),
|
||||
]
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user