big model failed alert (#38479)

This commit is contained in:
Daniel Koepping
2026-07-28 16:25:34 -07:00
committed by GitHub
parent 3040f55382
commit 294635beb5
3 changed files with 7 additions and 0 deletions
+1
View File
@@ -130,6 +130,7 @@ struct OnroadEvent @0xc4fa6047f024e718 {
excessiveActuation @96;
bigModelLoading @100;
bigModelReady @101;
bigModelFailed @102;
lowBatteryDEPRECATED @40;
soundsUnavailableDEPRECATED @47;
+4
View File
@@ -418,6 +418,10 @@ EVENTS: dict[int, dict[str, Alert | AlertCallbackType]] = {
ET.PERMANENT: EngagementAlert(AudibleAlert.complete),
},
EventName.bigModelFailed: {
ET.PERMANENT: NormalPermanentAlert("Big Model Failed ", "Restart the car to retry,\nnow driving on small model", duration=30.),
},
EventName.lateralManeuver: {
ET.WARNING: longitudinal_maneuver_alert,
ET.PERMANENT: NormalPermanentAlert("Lateral Maneuver Mode"),
@@ -162,6 +162,8 @@ class SelfdriveD:
self.big_model_ready_t = time.monotonic()
if self.params.get_bool("UsbGpuActive"):
self.events.add(EventName.bigModelReady)
else:
self.events.add(EventName.bigModelFailed)
self.big_model_loading = loading
if self.big_model_loading:
self.events.add(EventName.bigModelLoading)