big model loaded chime (#38420)

play chime when big model is loaded
This commit is contained in:
Daniel Koepping
2026-07-22 16:44:16 -07:00
committed by GitHub
parent 6335db69bd
commit 0bac3c9039
3 changed files with 7 additions and 0 deletions
+1
View File
@@ -129,6 +129,7 @@ struct OnroadEvent @0xc4fa6047f024e718 {
userBookmark @95;
excessiveActuation @96;
bigModelLoading @100;
bigModelReady @101;
lowBatteryDEPRECATED @40;
soundsUnavailableDEPRECATED @47;
+4
View File
@@ -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"),
@@ -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)