From 0bac3c903909f9a33e8bd8c4cee1ff4c1564cbe0 Mon Sep 17 00:00:00 2001 From: Daniel Koepping Date: Wed, 22 Jul 2026 16:44:16 -0700 Subject: [PATCH] big model loaded chime (#38420) play chime when big model is loaded --- openpilot/cereal/log.capnp | 1 + openpilot/selfdrive/selfdrived/events.py | 4 ++++ openpilot/selfdrive/selfdrived/selfdrived.py | 2 ++ 3 files changed, 7 insertions(+) diff --git a/openpilot/cereal/log.capnp b/openpilot/cereal/log.capnp index 00fccd43a6..342e4a03d4 100644 --- a/openpilot/cereal/log.capnp +++ b/openpilot/cereal/log.capnp @@ -129,6 +129,7 @@ struct OnroadEvent @0xc4fa6047f024e718 { userBookmark @95; excessiveActuation @96; bigModelLoading @100; + bigModelReady @101; lowBatteryDEPRECATED @40; soundsUnavailableDEPRECATED @47; diff --git a/openpilot/selfdrive/selfdrived/events.py b/openpilot/selfdrive/selfdrived/events.py index 96a316118b..76ffea1111 100755 --- a/openpilot/selfdrive/selfdrived/events.py +++ b/openpilot/selfdrive/selfdrived/events.py @@ -413,6 +413,10 @@ EVENTS: dict[int, dict[str, Alert | AlertCallbackType]] = { ET.NO_ENTRY: NoEntryAlert("Big Model Loading"), }, + EventName.bigModelReady: { + ET.PERMANENT: EngagementAlert(AudibleAlert.complete), + }, + EventName.lateralManeuver: { ET.WARNING: longitudinal_maneuver_alert, ET.PERMANENT: NormalPermanentAlert("Lateral Maneuver Mode"), diff --git a/openpilot/selfdrive/selfdrived/selfdrived.py b/openpilot/selfdrive/selfdrived/selfdrived.py index 04b5de25ea..3f84708eeb 100755 --- a/openpilot/selfdrive/selfdrived/selfdrived.py +++ b/openpilot/selfdrive/selfdrived/selfdrived.py @@ -160,6 +160,8 @@ class SelfdriveD: loading = self.params.get_bool("UsbGpuLoading") if self.big_model_loading and not loading: self.big_model_ready_t = time.monotonic() + if self.params.get_bool("UsbGpuActive"): + self.events.add(EventName.bigModelReady) self.big_model_loading = loading if self.big_model_loading: self.events.add(EventName.bigModelLoading)