mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-07-11 16:02:06 +08:00
6fe5d4054d
date: 2026-03-13T21:04:16 master commit: 41994b1d27423e8a10008019a962417bf0f5f974
17 lines
375 B
Python
17 lines
375 B
Python
import os
|
|
from typing import cast
|
|
|
|
from openpilot.system.hardware.base import HardwareBase
|
|
from openpilot.system.hardware.tici.hardware import Tici
|
|
from openpilot.system.hardware.pc.hardware import Pc
|
|
|
|
TICI = os.path.isfile('/TICI')
|
|
AGNOS = os.path.isfile('/AGNOS')
|
|
PC = not TICI
|
|
|
|
|
|
if TICI:
|
|
HARDWARE = cast(HardwareBase, Tici())
|
|
else:
|
|
HARDWARE = cast(HardwareBase, Pc())
|