mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-20 05:22:03 +08:00
6adb63b915
date: 2026-06-04T09:49:56 master commit: c0ab3550eca2e9daf197c46b7e4b24aa9637cf2e
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())
|