mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-26 00:12:05 +08:00
cfe0ae9b8a
date: 2023-10-09T10:55:55 commit: 91b6e3aecd7170f24bccacb10c515ec281c30295
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())
|