From a3797eb7a42cda2e2b146ea05361b57d89ddabba Mon Sep 17 00:00:00 2001 From: Jason Wen Date: Thu, 18 Dec 2025 15:05:27 -0500 Subject: [PATCH] more tici --- selfdrive/ui/soundd.py | 4 ++-- system/sensord/sensord.py | 2 +- system/ui/lib/application.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/selfdrive/ui/soundd.py b/selfdrive/ui/soundd.py index c41fec2676..c43001a155 100644 --- a/selfdrive/ui/soundd.py +++ b/selfdrive/ui/soundd.py @@ -27,7 +27,7 @@ AMBIENT_DB = 30 # DB where MIN_VOLUME is applied DB_SCALE = 30 # AMBIENT_DB + DB_SCALE is where MAX_VOLUME is applied VOLUME_BASE = 20 -if HARDWARE.get_device_type() == "tizi": +if HARDWARE.get_device_type() in ("tizi", "tici"): VOLUME_BASE = 10 AudibleAlert = car.CarControl.HUDControl.AudibleAlert @@ -55,7 +55,7 @@ sound_list: dict[int, tuple[str, int | None, float]] = { **sound_list_sp, } -if HARDWARE.get_device_type() == "tizi": +if HARDWARE.get_device_type() in ("tizi", "tici"): sound_list.update({ AudibleAlert.engage: ("engage_tizi.wav", 1, MAX_VOLUME), AudibleAlert.disengage: ("disengage_tizi.wav", 1, MAX_VOLUME), diff --git a/system/sensord/sensord.py b/system/sensord/sensord.py index cc0366881b..36602a3bce 100755 --- a/system/sensord/sensord.py +++ b/system/sensord/sensord.py @@ -97,7 +97,7 @@ def main() -> None: (LSM6DS3_Gyro(I2C_BUS_IMU), "gyroscope", True), (LSM6DS3_Temp(I2C_BUS_IMU), "temperatureSensor", False), ] - if HARDWARE.get_device_type() == "tizi": + if HARDWARE.get_device_type() in ("tizi", "tici"): sensors_cfg.append( (MMC5603NJ_Magn(I2C_BUS_IMU), "magnetometer", False), ) diff --git a/system/ui/lib/application.py b/system/ui/lib/application.py index 1b61009a4a..7a29db84fb 100644 --- a/system/ui/lib/application.py +++ b/system/ui/lib/application.py @@ -23,7 +23,7 @@ from openpilot.common.realtime import Ratekeeper from openpilot.system.ui.sunnypilot.lib.application import GuiApplicationExt -_DEFAULT_FPS = int(os.getenv("FPS", {'tizi': 20}.get(HARDWARE.get_device_type(), 60))) +_DEFAULT_FPS = int(os.getenv("FPS", {'tizi': 20, "tici": 20}.get(HARDWARE.get_device_type(), 60))) FPS_LOG_INTERVAL = 5 # Seconds between logging FPS drops FPS_DROP_THRESHOLD = 0.9 # FPS drop threshold for triggering a warning FPS_CRITICAL_THRESHOLD = 0.5 # Critical threshold for triggering strict actions