From 2c002755c7085422cf4574db7e9ec399eabc0760 Mon Sep 17 00:00:00 2001 From: firestarsdog <229254897+firestarsdog@users.noreply.github.com> Date: Wed, 26 Aug 2026 23:20:52 -0400 Subject: [PATCH] tell me wtf is wrong --- selfdrive/selfdrived/events.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/selfdrive/selfdrived/events.py b/selfdrive/selfdrived/events.py index 6d530cab4..aabbf2fd3 100644 --- a/selfdrive/selfdrived/events.py +++ b/selfdrive/selfdrived/events.py @@ -504,6 +504,15 @@ def no_lane_available_alert(CP: car.CarParams, CS: car.CarState, sm: messaging.S +def big_model_loading_alert(CP: car.CarParams, CS: car.CarState, sm: messaging.SubMaster, metric: bool, soft_disable_time: int, personality, starpilot_toggles: SimpleNamespace) -> Alert: + if HARDWARE.get_device_type() == 'mici': + return EmptyAlert + voltages = [s.voltage for s in sm['pandaStates'] if s.voltage > 0] if sm.seen['pandaStates'] else [] + v = max(voltages) if voltages else 0 + subtitle = f"Waiting for 13.0V ({v / 1000:.1f}V)" if 0 < v < 13000 else "Warming Up..." + return NormalPermanentAlert("Big Model Loading", subtitle) + + EVENTS: dict[int, dict[str, Alert | AlertCallbackType]] = { # ********** events with no alerts ********** @@ -524,6 +533,7 @@ EVENTS: dict[int, dict[str, Alert | AlertCallbackType]] = { }, EventName.bigModelLoading: { + ET.PERMANENT: big_model_loading_alert, ET.NO_ENTRY: NoEntryAlert("Big Model Loading"), },