mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-02-21 05:23:53 +08:00
* remove comma two support * cleanup release files * little more * more libs * no more gralloc * add snpe back
16 lines
321 B
Python
16 lines
321 B
Python
import os
|
|
from typing import cast
|
|
|
|
from selfdrive.hardware.base import HardwareBase
|
|
from selfdrive.hardware.tici.hardware import Tici
|
|
from selfdrive.hardware.pc.hardware import Pc
|
|
|
|
TICI = os.path.isfile('/TICI')
|
|
PC = not TICI
|
|
|
|
|
|
if TICI:
|
|
HARDWARE = cast(HardwareBase, Tici())
|
|
else:
|
|
HARDWARE = cast(HardwareBase, Pc())
|