mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-25 03:04:14 +08:00
b945d4c021
Integrate V-ASM from PR #75 with Galaxy-only configuration, stale-state safety, conditional SLV coexistence, and OpenCV inference. Originally contributed by @prabhaavp in #75. Co-authored-by: Prabhaav Pillai <143428353+prabhaavp@users.noreply.github.com>
11 lines
470 B
Python
11 lines
470 B
Python
from types import SimpleNamespace
|
|
|
|
from openpilot.system.manager.process_config import run_v_asm
|
|
|
|
|
|
def test_vasm_process_defaults_off_and_runs_only_onroad():
|
|
assert not run_v_asm(False, None, None, SimpleNamespace(v_asm_enabled=False))
|
|
assert not run_v_asm(False, None, None, SimpleNamespace(v_asm_enabled=True))
|
|
assert not run_v_asm(True, None, None, SimpleNamespace(v_asm_enabled=False))
|
|
assert run_v_asm(True, None, None, SimpleNamespace(v_asm_enabled=True))
|