mirror of
https://github.com/infiniteCable2/openpilot.git
synced 2026-08-05 08:16:03 +08:00
Add MEBevo Gen 2 (#11)
* Update opendbc_repo * dev mqbevo gen 2 support * testing * Update opendbc_repo * steer fault warning with stopping OP steer activity * Update opendbc_repo * Update opendbc_repo
This commit is contained in:
@@ -134,6 +134,7 @@ struct OnroadEvent @0xc4fa6047f024e718 {
|
||||
audioFeedback @97;
|
||||
dashcamModeRadDisEngOn @100;
|
||||
radarDisableFailed @101;
|
||||
steerFaultWarning @102;
|
||||
|
||||
soundsUnavailableDEPRECATED @47;
|
||||
}
|
||||
|
||||
+1
-1
Submodule opendbc_repo updated: 2270bfc62b...1ea4db06cb
@@ -173,6 +173,8 @@ class CarSpecificEvents:
|
||||
else:
|
||||
self.no_steer_warning = False
|
||||
self.silent_steer_warning = False
|
||||
if CS.steerFaultWarning:
|
||||
events.add(EventName.steerFaultWarning)
|
||||
if CS.steerFaultPermanent:
|
||||
events.add(EventName.steerUnavailable)
|
||||
|
||||
|
||||
@@ -344,6 +344,14 @@ EVENTS: dict[int, dict[str, Alert | AlertCallbackType]] = {
|
||||
Priority.LOW, VisualAlert.steerRequired, AudibleAlert.prompt, 1.8),
|
||||
},
|
||||
|
||||
EventName.steerFaultWarning: {
|
||||
ET.WARNING: Alert(
|
||||
"Steering Fault May Be Imminent",
|
||||
"",
|
||||
AlertStatus.userPrompt, AlertSize.small,
|
||||
Priority.LOW, VisualAlert.steerRequired, AudibleAlert.prompt, 1.8),
|
||||
},
|
||||
|
||||
EventName.driverDistracted1: {
|
||||
ET.PERMANENT: Alert(
|
||||
"Pay Attention",
|
||||
|
||||
Reference in New Issue
Block a user