mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-22 07:43:55 +08:00
* less TICI when not needed
* fix process replay
* move reading voltages into hw abstraction layer
* Update selfdrive/hardware/tici/hardware.h
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* Update selfdrive/hardware/hw.h
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* Update selfdrive/hardware/base.h
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* rename init function
* Update selfdrive/athena/athenad.py
Co-authored-by: Robbe Derks <robbe.derks@gmail.com>
* Update selfdrive/boardd/boardd.cc
* Apply suggestions from code review
* Update selfdrive/thermald/thermald.py
* update ref
* fix alert width if all cameras are bad
* add ecam to test_loggerd
* bump cereal
* bump cereal
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Robbe Derks <robbe.derks@gmail.com>
old-commit-hash: f49a9c9fd2
17 lines
334 B
Python
17 lines
334 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')
|
|
AGNOS = TICI
|
|
PC = not TICI
|
|
|
|
|
|
if TICI:
|
|
HARDWARE = cast(HardwareBase, Tici())
|
|
else:
|
|
HARDWARE = cast(HardwareBase, Pc())
|