diff --git a/opendbc_repo b/opendbc_repo index e994baba9a..5b27a531ce 160000 --- a/opendbc_repo +++ b/opendbc_repo @@ -1 +1 @@ -Subproject commit e994baba9a7fe35c53984021424b9610b5444f01 +Subproject commit 5b27a531ce7b4d5d48268b64e19fd0dfa7b75936 diff --git a/openpilot/cereal/log.capnp b/openpilot/cereal/log.capnp index a74bea68b5..10b968b039 100644 --- a/openpilot/cereal/log.capnp +++ b/openpilot/cereal/log.capnp @@ -116,6 +116,7 @@ struct OnroadEvent @0xc4fa6047f024e718 { canBusMissing @80; selfdrivedLagging @81; resumeBlocked @82; + carNotReady @103; steerTimeLimit @83; vehicleSensorsInvalid @84; locationdTemporaryError @85; diff --git a/openpilot/selfdrive/car/car_specific.py b/openpilot/selfdrive/car/car_specific.py index 244a8e3b07..20fbea1d6b 100644 --- a/openpilot/selfdrive/car/car_specific.py +++ b/openpilot/selfdrive/car/car_specific.py @@ -133,6 +133,8 @@ class CarSpecificEvents: events.add(EventName.parkBrake) if CS.accFaulted: events.add(EventName.accFaulted) + if CS.carNotReady: + events.add(EventName.carNotReady) if CS.steeringPressed: events.add(EventName.steerOverride) if CS.steeringDisengage and not CS_prev.steeringDisengage: diff --git a/openpilot/selfdrive/selfdrived/events.py b/openpilot/selfdrive/selfdrived/events.py index 31aa5c8103..aa185eb5af 100755 --- a/openpilot/selfdrive/selfdrived/events.py +++ b/openpilot/selfdrive/selfdrived/events.py @@ -754,6 +754,10 @@ EVENTS: dict[int, dict[str, Alert | AlertCallbackType]] = { ET.NO_ENTRY: NoEntryAlert("Press Set to Engage"), }, + EventName.carNotReady: { + ET.NO_ENTRY: NoEntryAlert("Car Not Ready"), + }, + EventName.wrongCruiseMode: { ET.USER_DISABLE: EngagementAlert(AudibleAlert.disengage), ET.NO_ENTRY: NoEntryAlert("Adaptive Cruise Disabled"),