mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-08-20 18:03:46 +08:00
Add carNotReady noEntry (#38485)
* car not ready * missing * missing * bump
This commit is contained in:
+1
-1
Submodule opendbc_repo updated: e994baba9a...5b27a531ce
@@ -116,6 +116,7 @@ struct OnroadEvent @0xc4fa6047f024e718 {
|
||||
canBusMissing @80;
|
||||
selfdrivedLagging @81;
|
||||
resumeBlocked @82;
|
||||
carNotReady @103;
|
||||
steerTimeLimit @83;
|
||||
vehicleSensorsInvalid @84;
|
||||
locationdTemporaryError @85;
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user